Re: [pulseaudio-discuss] suggested patch: only update level meters when window has focus

2014-07-13 Thread Tanu Kaskinen
On Fri, 2014-07-11 at 22:17 +0200, Lukas Kramer wrote: Hello, I've noticed that pavucontrol consistently eats up around 20% of CPU. This is because pavucontrol updates the level meters on every sink callback, even when no one's looking (window isn't focused). So I've created a patch that

Re: [pulseaudio-discuss] suggested patch: only update level meters when window has focus

2014-07-13 Thread Alexander E. Patrakov
13.07.2014 16:22, Tanu Kaskinen wrote: I don't think there's any reliable way to figure out whether the window is fully or partially visible or fully covered by some other window, so I think the best solution would be to have a manual toggle in the UI for enabling/disabling volume meters. It

Re: [pulseaudio-discuss] suggested patch: only update level meters when window has focus

2014-07-13 Thread Tanu Kaskinen
(added pulseaudio-discuss back to cc) On Sun, 2014-07-13 at 16:00 +0200, Lukas Kramer wrote: I've done some research as well and also came to the conclusion that it's impossible to determine whether the window is visible or not, so I've settled with get_active, which as you pointed out isn't

[pulseaudio-discuss] suggested patch: only update level meters when window has focus

2014-07-11 Thread Lukas Kramer
Hello, I've noticed that pavucontrol consistently eats up around 20% of CPU. This is because pavucontrol updates the level meters on every sink callback, even when no one's looking (window isn't focused). So I've created a patch that adds an option to only update the level meters when the