Bug 494382 - KDE 6.2 with lag when moving windows with ICC profiles
Summary: KDE 6.2 with lag when moving windows with ICC profiles
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: performance (show other bugs)
Version: 6.2.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-10-09 23:23 UTC by Elvis Douglas Janegitz
Modified: 2024-10-13 03:45 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elvis Douglas Janegitz 2024-10-09 23:23:10 UTC
KDE 6.2 has a strange lag in window movement relative to the cursor; it feels like there's a delay, just like it was in Xorg (I'm on Fedora 40 with Wayland). I recorded two slow-motion videos to try to show the difference:
  
- Video for 6.1.5 = https://drive.google.com/file/d/1-Dht6JaIamnWXKC7mFuvroMRG6Cft-FM/view?usp=sharing
- Video for 6.2.0 = https://drive.google.com/file/d/1-8Q9eoJ58cO8wbNjQDsAgp41lwalF35y/view?usp=sharing

SOFTWARE/OS VERSIONS
Linux:  Fedora 40
KDE Plasma Version: 6.2.0
KDE Frameworks Version:  6.6.0
Qt Version: 6.7.2
Comment 1 Filip 2024-10-10 07:59:55 UTC
Can confirm. Also it's not just a delay with cursor, but also a lot of stuttering when dragging the windows (at least on my end).

I use Nvidia GPU with proprietary drivers.
Comment 2 jeroni 2024-10-10 08:50:03 UTC
For me it's only happening with Nvidia 560.35.03 drivers (tested on Arch and Fedora) while in Opensuse Tumbleweed with 550.120 drivers is working fine.
Comment 3 Elvis Douglas Janegitz 2024-10-10 13:05:41 UTC
[UPDATE]
I noticed that when the cursor is zoomed in, this doesn't happen. What an annoying bug.

- Video for 6.2.0 when cursor is zoomed = https://drive.google.com/file/d/1-_vGNY9vs7K2CzrPDDNUuMOG82rel6ge/view?usp=sharing

[UPDATE 2]
I forgot to mention my hardware, but I don't have an NVidia here. It's an Intel Core 5 120u with Intel Xe Graphics and Mesa version 24.1.7 with Linux Kernel 6.10.12-200 (current Fedora 40 default kernel)
Comment 4 Pablo Lopez 2024-10-10 15:12:31 UTC
I also have this issue but I don't think is as obvious as the OP one.
One thing that I've observed and I think it has to do with the bug is that the cursor gets duplicated (but can't be seen in OP video, but it can be seen in mine, maybe because the themed mouse pointer or because the size of the pointer is bigger than default).

https://drive.google.com/file/d/13cUcLHbJc6Sv3b9HaRDn5Tta64Cmn8Of/view?usp=sharing

You can see that the cursor gets duplicated when dragging the window, but if you "embiggen" the cursor and drag the window, the cursor is not getting duplicating, thus aligning with OP issue of not experiencing the bug with the big cursor. 
My specs:
Operating System: EndeavourOS 
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 30,6 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2
Manufacturer: ASUS
Comment 5 jeroni 2024-10-10 15:55:03 UTC
It seems to happen when you have ICC profiles set on the monitors, disabling them all works pretty well
Comment 6 Elvis Douglas Janegitz 2024-10-10 16:22:18 UTC
(In reply to jeroni from comment #5)
> It seems to happen when you have ICC profiles set on the monitors, disabling
> them all works pretty well

I'm not using an ICC profile, it's set to default, just for the laptop's internal monitor I left the color profile setting to 'built-in', but even disabling it and keeping everything at default, the issue remains the same.
Comment 7 Elvis Douglas Janegitz 2024-10-11 00:24:11 UTC
I turned off the night light (I usually keep it active by default at 5200k), and it reduced the issue, although it still persists...
Comment 8 Bela Drescher 2024-10-11 15:52:28 UTC
Turning off night light completely solved the issue for me. But I only had a problem with the choppy cursor. I have wobbly windows enabled, so I don't care about a small lag. Switching the color profile between None and Built-in doesn't change anything.
Comment 9 Filip 2024-10-11 16:14:24 UTC
Turning off night light (or just setting it to the coolest tone) completely resolves my issue of stuttering while dragging windows
Comment 10 Antemyste 2024-10-11 21:25:02 UTC
Hi all, same problem here, incredible lags after upgrade from 6.1.5 to 6.2 on wayland.
(it was very smooth before upgrade, even on my low hardware)

- Now, when the new "shake cursor zoom" animation is triggered, it make all the desktop EXTREMELY laggy: freeze for 3 secondes.
  (it was smooth on 6.1.5)

- Disabling KDE night color (Nightshift) make things WAY better (for me not as smooth as before the upgrade, but not 100% sure about that).

- NOT on Nvidia GPU, its a Intel integrated Graphics (Intel(R) Core(TM) i7 CPU  M 640  @ 2.80GHz)
- I dont use ICC profile, tried to use 'integrated' one, don't change anything.

Complete wayland debug infos in this pastbin: https://pastebin.com/kZgev8PN

Operating System: Arch Linux 
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.1.55-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7 CPU M 640 @ 2.80GHz
Memory: 7.7 Gio of RAM
Graphics Processor: Mesa Intel® HD Graphics
Manufacturer: Dell Inc.
Product Name: Latitude E6410
System Version: 0001
Comment 11 Juan Francisco 2024-10-12 00:04:12 UTC
If you need a workaround until the devs find the real bug, I'm using this script:

#!/bin/sh
export KWIN_COMPOSE=Q

Add it to the autostart as a pre-startup script. It will use software rendering for kwin instead of opengl. You will lose the effects and the night light but at least the desktop is usable with that.
Comment 12 Elvis Douglas Janegitz 2024-10-12 20:51:16 UTC
In version 6.2, there are performance issues with anything that alters color calibration, whether it's an ICC profile, the laptop's internal screen profile, or night light. I recorded a video toggling the night light on and off while monitoring performance (using the 'intel_gpu_top' command). It's bizarre how enabling the night light causes the effect of enlarging the cursor to exceed 50% GPU usage.

Video link: https://www.youtube.com/watch?v=6W_G9bmMKnQ

Note: I recorded the screen with my phone to avoid any interference from a screen recording application.
Comment 13 Lee Zongze 2024-10-13 02:53:35 UTC
The same problem occurs, the graphics card is Intel+Nvidia is severely sluggish and tears the picture on the Nvidia output screen, Intel is normal but has a slight picture delay, and the GPU can be seen to soar significantly, and Nvidia directly soars to 100% instantly.

It has been fully downgraded to 6.1.5 and is waiting for a developer fix
Comment 14 Lee Zongze 2024-10-13 03:45:27 UTC
Multiple attempts the issue is caused by the Kwin package, just roll back the kwin package to 6.1.5, but I don't know for some reason or if there will be other issues with just downgrading kwin

Waiting for developer fix problem