discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

OpenSCAD using 15% CPU when idle

NH
nop head
Mon, Nov 27, 2017 2:04 PM

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?

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?
MK
Marius Kintel
Mon, Nov 27, 2017 2:40 PM

On Nov 27, 2017, at 9:04 AM, nop head nop.head@gmail.com 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

> On Nov 27, 2017, at 9:04 AM, nop head <nop.head@gmail.com> 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
NH
nop head
Mon, Nov 27, 2017 2:57 PM

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 marius@kintel.net wrote:

On Nov 27, 2017, at 9:04 AM, nop head nop.head@gmail.com 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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 <marius@kintel.net> wrote: > > > On Nov 27, 2017, at 9:04 AM, nop head <nop.head@gmail.com> 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >