OpenSCAD Performance

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenSCAD Performance

thastark
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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD Performance

frankv
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" <[hidden email]> 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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD Performance

kintel
Administrator
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 mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD Performance

NateTG
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/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: OpenSCAD Performance

thastark
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/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org