Bug 445115

Summary: kwin under wayland drops frames when mousing across window edges
Product: [Plasma] kwin Reporter: Michael Marley <michael>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: michael, nate
Priority: NOR    
Version First Reported In: 5.23.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Michael Marley 2021-11-07 13:38:22 UTC
SUMMARY
When running kwin 5.23.2 (and all previous versions that I have tested; this doesn't appear to be a regression), I have found that moving the mouse across the edge of a window causes kwin to drop frames.  I have reproduced this on multiple systems with Intel graphics, but I don't have any other brands of GPU to test.  It happens with every version of the graphics stack I have tested, up to and including kernel 5.15.1, libdrm 2.4.107, mesa 21.3.0-rc4, and wayland 1.19.  It affects both native Wayland and xwayland windows.  It is reproducible immediately after the system is booted.

STEPS TO REPRODUCE
1. Start up a KDE wayland session
2. Open glxgears or any other application that produces smooth motion (the bug happens with all applications, but it is most noticeable with smooth movement)
3. Move the mouse over any windows border on the screen

OBSERVED RESULT
Frames are dropped, resulting in jerky motion

EXPECTED RESULT
No frames should be dropped for smooth motion

SOFTWARE/OS VERSIONS
Linux: 5.15.1
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.87.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
I have uploaded a demonstration video to YouTube (as it is too large to attach here):  https://www.youtube.com/watch?v=ErkFgkioPeg  Please watch it in 60fps for the most effect.
Comment 1 Michael Marley 2021-11-11 19:28:25 UTC
Some further investigation reveals that this bug affects Broadwell GPUs but does not affect Skylake or Coffeelake.  I haven't been able to test Haswell yet.  The latency-vs.-smoothness control has no effect.
Comment 2 Michael Marley 2022-06-10 22:00:03 UTC
This doesn't happen anymore in Plasma 5.25.