https://bugs.kde.org/show_bug.cgi?id=490790

            Bug ID: 490790
           Summary: Occasional low-FPS during effect animations since a
                    couple of versions
    Classification: Plasma
           Product: kwin
           Version: 6.1.3
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: performance
          Assignee: kwin-bugs-n...@kde.org
          Reporter: bastimeyer...@gmail.com
  Target Milestone: ---

SUMMARY
I've noticed some performance issues for a few weeks now.

Apologies for being super vague here and opening a bug report before asking on
other channels first, as I am not 100% certain yet whether it's actually caused
by KWin. But considering that I'm seeing it only during specific actions when
using the desktop, my guess is that it's caused by some changes in recent KWin
versions. I unfortunately don't know when this started to happen, because those
performance issues only occur sometimes and you don't always notice them. When
you do notice them though, it's a bit annoying and then you notice them every
time, which is the reason why I decided to write this bug report.

So what I'm seeing is that the animations during some effects, like the desktop
grid for example, sometimes (in about 10-20% of the time, but it varies) have
low FPS and are not smooth. I'm using a 3x3 desktop grid with two activities,
and when opening or closing the grid, regardless whether there are any windows
open on the current or other desktops, the animation stutters. This can even be
observed when changing the global animation speed to slow. The stuttering only
occurs sometimes at the beginning of the animation, and it lasts for less than
half a second. It's still noticable though, because it's obviously not matching
the display's refresh rate. When the animation speed is set to default, it
lasts for the whole animation duration. I have checked KWin's FPS overlay, but
couldn't see any obvious issues. While the FPS overlay is running, the issue
also occurs very rarely.

As said, I'm not 100% certain yet where this issue is coming from, so at first
I suspected a recent kernel upgrade with AMDGPU changes which caused my Radeon
RX 5700XT to maybe stay clocked down for too long after idling on the desktop
and then toggling the grid effect, but I could also observe the issue when the
GPU was utilized otherwise, so I don't think this is an AMDGPU issue. I've
tried recording the issue using OBS, but haven't had much success yet either,
maybe for the same reason as with the FPS overlay.

Apparently there were some recent changes in regards to tripple buffering on
KWin's 6.1 branch. No idea if this is relevant.
https://invent.kde.org/plasma/kwin/-/commits/Plasma/6.1

Are there any better ways I can reproduce or debug issues like this? I could
probably try to bisect the 6.1 branch, but I'd prefer to avoid this, because
it's very time consuming.

STEPS TO REPRODUCE
1. Have multiple virtual desktops (e.g. aligned in a 3x3 grid)
2. Toggle the desktop grid a lot of times
3. Wait for some of the opening or closing animations start to stutter

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.1.3 (Wayland session)
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
It's a recent regression, but I don't know when it started to happen and what
changed.

It's not a hardware issue either. My system consists of a Ryzen R9 3950X and a
Radeon RX 5700XT with two screens, both 1080p60. As said, 9 virtual desktops in
a 3x3 grid and 2 desktop activities.

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

Reply via email to