Summary: | On Wayland and Plasma 6 with 200% scale and AMS on, mouse cursor lags while any Plasma panel pop-ups are open | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Nate Graham <nate> |
Component: | generic-performance | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | haruhi2462, kde, postix, xaver.hugl |
Priority: | NOR | Keywords: | qt6, wayland |
Version: | master | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/b22e58846a998080c992a69b7a2306ac288b768c | Version Fixed In: | |
Sentry Crash Report: |
Description
Nate Graham
2023-04-29 17:07:35 UTC
Issue only seen on Wayland; X11 Plasma 6 session is unaffected. Nicolas did some Heaptrack investigation with me and we found something a bit odd: when it's laggy, it's using *less* CPU time and generating *fewer* cursor position change events. So it's not an issue of being bottlenecked on system resources; rather it's not requesting enough of them! Another data point: I can reproduce it with 200% scale, but colleagues using Wayland with 100% scale cannot reproduce it. I can't reproduce it on my laptop. I use 200% scale. I have Qt 6.5.1, Arch linux With https://invent.kde.org/plasma/kwin/-/merge_requests/4161 merged, the manifestation of this issue is now different: AMS enabled (the default): Cursor lags on any part of the screen when any Plasma Panel popups are open AMS disabled with KWIN_DRM_NO_AMS=1: Cursor never lags And with https://invent.kde.org/plasma/kwin/-/merge_requests/4207 applied, the manifestation is different again: now I get back to the original issue of mouse lag when moving over delegated of plasma popups. It appears to be the background Contrast effect that causes this problem; if I turn it off, the problem goes away. And if I have it on--even with the Blur effect off--the problem remains. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/4211 Git commit b22e58846a998080c992a69b7a2306ac288b768c by David Edmundson. Committed on 24/06/2023 at 07:54. Pushed by davidedmundson into branch 'master'. contrast: Improve performance glCopyTexSubImage2D is super slow on Intel GPUs on wayland. We have an existing method to read from the framebuffer that is used in the blur and other effects. Rather than creating a scratch framebuffer every frame we keep a cache per window for the lifespan of the effect. M +28 -22 src/plugins/backgroundcontrast/contrast.cpp M +4 -1 src/plugins/backgroundcontrast/contrast.h https://invent.kde.org/plasma/kwin/-/commit/b22e58846a998080c992a69b7a2306ac288b768c *** Bug 441208 has been marked as a duplicate of this bug. *** |