OpenSCAD rendering is not multi-threaded.
However I noticed that, while rendering one design for STL, I could open
another instance of OpenSCAD and render a second design for STL
simultaneously (and processor load doubled).
Since some of my STL rendering tasks take up to 3 hours, I could run 16
renderings simultaneously from a batch file. They will still take three
hours, but after a little more than 3 hours, 16 will be ready (assuming a 16
core processor).
It might not be the primary design of OpenSCAD to use it in this way, but
can this be done safely? (I guess so)
I used a makefile with make -j to do just this with OpenSCAD to generate images and STLs for my OpenSCAD designed Snappy 3D printer.
-Revar
On Aug 7, 2020, at 7:35 AM, peter_osc@xs4all.nl wrote:
OpenSCAD rendering is not multi-threaded.
However I noticed that, while rendering one design for STL, I could open another instance of OpenSCAD and render a second design for STL simultaneously (and processor load doubled).
Since some of my STL rendering tasks take up to 3 hours, I could run 16 renderings simultaneously from a batch file. They will still take three hours, but after a little more than 3 hours, 16 will be ready (assuming a 16 core processor).
It might not be the primary design of OpenSCAD to use it in this way, but can this be done safely? (I guess so)
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org