OpenSCAD using 15% CPU when idle

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

OpenSCAD using 15% CPU when idle

nophead
I noticed the latest Windows snapshot 2017.11.12 (git 7cb1e93) is using 15% CPU when doing nothing and not even visible. Not great on a battery powered laptop. What is it doing?

_______________________________________________
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 using 15% CPU when idle

kintel
Administrator

> On Nov 27, 2017, at 9:04 AM, nop head <[hidden email]> wrote:
>
> I noticed the latest Windows snapshot 2017.11.12 (git 7cb1e93) is using 15% CPU when doing nothing and not even visible. Not great on a battery powered laptop. What is it doing?

My first guess is that this is still related to Automatic Reload: https://github.com/openscad/openscad/issues/1237
Easy to verify by turning off automatic reload.

You already improved this quite a bit by caching the file update checks. It should be possible to optimize further by using filesystem-level watchers, which may be a bit OS-dependent.

 -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 using 15% CPU when idle

nophead
Oh, yes, of course. I am surprised how high it is though. stat must be very expensive.

On 27 November 2017 at 14:40, Marius Kintel <[hidden email]> wrote:

> On Nov 27, 2017, at 9:04 AM, nop head <[hidden email]> wrote:
>
> I noticed the latest Windows snapshot 2017.11.12 (git 7cb1e93) is using 15% CPU when doing nothing and not even visible. Not great on a battery powered laptop. What is it doing?

My first guess is that this is still related to Automatic Reload: https://github.com/openscad/openscad/issues/1237
Easy to verify by turning off automatic reload.

You already improved this quite a bit by caching the file update checks. It should be possible to optimize further by using filesystem-level watchers, which may be a bit OS-dependent.

 -Marius


_______________________________________________
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