nodefourtytwo / gnome-shell-extension-cpu-freq

Change CPU frequency from gnome shell
12 stars 11 forks source link

_update_popup slows UI down #15

Open gilzad opened 11 years ago

gilzad commented 11 years ago

Hi,

on my machine the screen stutters every 5 seconds, exactly at the time when the cpu-freq-extension gets refreshed ( GLib.timeout_add_seconds(0, 5, func) ), i.e. if I reduce the interval to one second, my desktop will stutter each second.

I went ahead and commented out the call of 'this._update_popup()', which solved the issue temporarily. But if I change the governor now, the dot won't change its position. I would try to call _update_popup() only after the event of a changed governor has been raised, but I couldn't find out where in the code I would arrive then. Sorry, I'm quite new to this javascript-in-gnome thing. Also sorry if this has been posted before but I googled for every term I could think of and I didn't find anything related.

I should also mention that the stuttering disappears, if I set the governor to 'performance'.

My sys: Debian Wheezy, amd64 Intel i7, sandy, quadcore, the amount of cores (8 with HT, 4 without) had no effect. nvidia, proprietary drivers kernel 3.2.14-rt

Let me know if I can do anything.

Thanks

gilzad