discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

OpenSCAD Performance

MS
Matt Stark
Wed, Feb 7, 2018 9:49 PM

I have 64GB RAM, Quad GPU & 12 cores available but OpenSCAD only seems to
use max 3GB RAM, No GPU and 10% CPU.

Can anyone point me in the direction of any performance optimizations?
I'll compile the code but need a couple pointers to get me started.

I have 64GB RAM, Quad GPU & 12 cores available but OpenSCAD only seems to use max 3GB RAM, No GPU and 10% CPU. Can anyone point me in the direction of any performance optimizations? I'll compile the code but need a couple pointers to get me started.
FV
Frank van der Hulst
Wed, Feb 7, 2018 11:09 PM

Openscad does not multi-thread, so will only use 1 core.

I suspect that it would be a big job to convert to multi-threading, just
because otherwise it would have been done long ago. Even the relatively
simple step of running a separate UI thread hasn't been done.

Frank

On 8/02/2018 10:50 AM, "Matt Stark" thastark@gmail.com wrote:

I have 64GB RAM, Quad GPU & 12 cores available but OpenSCAD only seems to
use max 3GB RAM, No GPU and 10% CPU.

Can anyone point me in the direction of any performance optimizations?
I'll compile the code but need a couple pointers to get me started.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Openscad does not multi-thread, so will only use 1 core. I suspect that it would be a big job to convert to multi-threading, just because otherwise it would have been done long ago. Even the relatively simple step of running a separate UI thread hasn't been done. Frank On 8/02/2018 10:50 AM, "Matt Stark" <thastark@gmail.com> wrote: I have 64GB RAM, Quad GPU & 12 cores available but OpenSCAD only seems to use max 3GB RAM, No GPU and 10% CPU. Can anyone point me in the direction of any performance optimizations? I'll compile the code but need a couple pointers to get me started. _______________________________________________ OpenSCAD mailing list Discuss@lists.openscad.org http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
MK
Marius Kintel
Wed, Feb 7, 2018 11:18 PM

OpenSCAD runs rendering in a separate thread from the UI thread.
Turning the rendering into a multi-threaded version is work in progress and
could need more eyes: https://github.com/openscad/openscad/pull/1980

Note: This will only split the application of individual (e.g. boolean)
operators out into separate threads, not make the operations themselves
multi-threaded. The rather non-obvious effect of this is that the maximum
speedup tends to be capped at ~35% since the last union operation will
still take half of the time and run single-threaded.

-Marius

OpenSCAD runs rendering in a separate thread from the UI thread. Turning the rendering into a multi-threaded version is work in progress and could need more eyes: https://github.com/openscad/openscad/pull/1980 Note: This will only split the application of individual (e.g. boolean) operators out into separate threads, not make the operations themselves multi-threaded. The rather non-obvious effect of this is that the maximum speedup tends to be capped at ~35% since the last union operation will still take half of the time and run single-threaded. -Marius
N
NateTG
Thu, Feb 8, 2018 1:41 AM

Maybe this is more of a question for github, but what about making the
interpreter multi-threaded?  Immutable variables are supposed to make that
easier.

--
Sent from: http://forum.openscad.org/

Maybe this is more of a question for github, but what about making the interpreter multi-threaded? Immutable variables are supposed to make that easier. -- Sent from: http://forum.openscad.org/
T
thastark
Fri, Feb 9, 2018 12:58 AM

Thanks all.

I get parallel processing would be akin to a rewrite.  I was interested in
understanding if there are any configurable bottlenecks. I'll run over to
github & see what's going on there.  Love the community & love the tool.
Really appreciate the feedback!

Cheers -

Matt

--
Sent from: http://forum.openscad.org/

Thanks all. I get parallel processing would be akin to a rewrite. I was interested in understanding if there are any configurable bottlenecks. I'll run over to github & see what's going on there. Love the community & love the tool. Really appreciate the feedback! Cheers - Matt -- Sent from: http://forum.openscad.org/