Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

be more CPU-efficient, particularly when not running #27

Closed
glyph opened this issue Apr 24, 2022 · 1 comment
Closed

be more CPU-efficient, particularly when not running #27

glyph opened this issue Apr 24, 2022 · 1 comment

Comments

@glyph
Copy link
Owner

glyph commented Apr 24, 2022

When running, it seems like burning 10% CPU or so, even on a high end system, to keep the animation running with reasonable fluidity is just non-negotiable (Facilitimer, which displays a similar progress progress bar, uses similar CPU).

But when the bar is not displayed, we can know in advance what the next interesting inflection point in our schedule is, and just fully go to sleep and not schedule anything until that point.

@glyph
Copy link
Owner Author

glyph commented Dec 4, 2022

I'm pretty happy with the "pulse the progress bar periodically" solution to this, which (A) draws the eye only intermittently, which is better than constant slow motion which keeps attention focused on it, and (B) addresses the effective "CPU leak" of having it running.

@glyph glyph closed this as completed Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant