oleid / gnome-shell-teatime

MIT License
37 stars 24 forks source link

TeaTime is CPU intensive when countdown is running #16

Closed Mno-hime closed 9 years ago

Mno-hime commented 10 years ago

Since today update to version 16 from extensions.g.o TeaTime is CPU intensive when countdown is running, it eats some 30 % of one of my CPU cores. Previous version was OK.

Mno-hime commented 10 years ago

Oh, one can see in htop that gnome-shell is the process which is CPU intensive when TeaTime runs countdown.

oleid commented 10 years ago

Indeed, I see it for myself on GNOME 3.14. The graphical countdown is more CPU intensive now. Strange, the only thing which changed there are the colors. As a work-around for now, please use the textual countdown.

Mno-hime commented 10 years ago

What about the new icon which is now in Javascript (icon.js)? Can it be you are refreshing it (or something) all the time the counter runs? Just a guess.

oleid commented 10 years ago

Digging a bit deeper, it seems as if this high CPU usage was there before the GNOME-3.14 changes. I noticed, that decreasing the redraw frequency helps a lot -- at least on my machine!

Could you try the latest commit? https://github.com/oleid/gnome-shell-teatime/commit/5153e81064ee1ecf380d7e86d3629908199599d5

Mno-hime commented 10 years ago

That worked well, thanks!

On 21.10.2014 21:44, oleid wrote:

Digging a bit deeper, it seems as if this high CPU usage was there before the GNOME-3.14 changes. I noticed, that decreasing the redraw frequency helps a lot -- at least on my machine!

Could you try the latest commit? 5153e81 https://github.com/oleid/gnome-shell-teatime/commit/5153e81064ee1ecf380d7e86d3629908199599d5

— Reply to this email directly or view it on GitHub https://github.com/oleid/gnome-shell-teatime/issues/16#issuecomment-59986532.

oleid commented 10 years ago

Fine, I'll submit it to the extension page, when I've accumulated more changes (I'm working on more theming stuff); will close the issue if it's submitted.