https://bugs.kde.org/show_bug.cgi?id=387214
--- Comment #6 from Lastique <andy...@mail.ru> ---
If I remove all environment variables I get tearing and no CPU spikes.

I found that the minimal setup to get CPU spikes is to have
KWIN_USE_BUFFER_AGE=0 in /etc/environment. The average CPU consumption by Kwin
in this setup while playing video fullscreen is noticeable higher (2-3% vs 0-1%
as KSysGuard reports) and there are periodic CPU spikes.

Adding just __GL_YIELD="USLEEP" to /etc/environment solves the CPU spikes.

Other things I've tried:

__GL_THREADED_OPTIMIZATIONS=1 alone does not enable CPU spikes, but together
with KWIN_USE_BUFFER_AGE=0 it seems to make the spikes more prominent (i.e.
more often to appear and longer in duration).

Other mentioned environment variables don't seem to affect the problem.

"Allow applications to block compositing" in Compositor setting doesn't affect
the problem.

During all the testing, Rendering backend was OpenGL 3.1, Tearing prevention
was Automatic.

I cannot permanently remove KWIN_USE_BUFFER_AGE=0 because this is a workaround
for https://bugs.kde.org/show_bug.cgi?id=363500.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to