glyph / Pomodouroboros

Pomodoro timer that acknowledges the inexorable, infinite passage of time
MIT License
191 stars 13 forks source link

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

Closed glyph closed 1 year ago

glyph commented 2 years ago

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 commented 1 year ago

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.