discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Using OpenSCAD rendering semi parallel?

PO
peter_osc@xs4all.nl
Fri, Aug 7, 2020 2:34 PM

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 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)
RD
Revar Desmera
Fri, Aug 7, 2020 6:10 PM

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

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