Laggy windows on rtx 4060 + wayland

Moving windows and resizing them makes the system lag, i also expirience some input lag while using vscode (that runs on electron).

I had this problem for months and any update could solve this.

Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.12.13-200.fc41.x86_64 (64-bit)
GPU: RTX 4060
NVidia drivers: proprietary v. 565.77

Grub is set up correctly to load nvidia drivers: /etc/default/grub: GRUB_CMDLINE_LINUX="rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 nvidia-drm.fbdev=1 amdgpu.dcdebugmask=0x400"

Hi! If you’re using the closed-source kernel drivers, have you also tried disabling the GSP firmware by adding nvidia.NVreg_EnableGpuFirmware=0 as a parameter to your Linux kernel command line?

That’s the one step I found necessary on my newest device - with a new enough graphics card to have the GSP to begin with - to remove pretty much all the weird stuttering and lagginess from the Plasma desktop when using a recently-released Nvidia card. In my opinion, it’s worth trying if you’re getting a weirdly “janky” experience.

I don’t disable GSP firmware anymore, and I no longer experience the desktop jankiness.

i have added the string and then i have run grub2-mkconfig -o /boot/grub2/grub.cfg. but the problem is still there.

So the problem seems to be touchegg, according to journalctl:

feb 17 14:32:34 ErPicci.lan touchegg[3055]: Error connecting to Touchégg daemon: Could not connect: Connection refused
feb 17 14:32:34 ErPicci.lan touchegg[3055]: Reconnecting in 5 seconds...

so, randomly, i run: systemctl enable --now touchegg, and now performance are a little bit better. some times there is still lag while resinzing and moving windows but at this point i think it’s a driver problem.

Or touchegg causing other issues.
You could systemctl disable --now touchegg for a minute to check.

i get better performance with touchegg disabled, and since i don’t need gestures on my desktop i’ve removed it. However, i still experience lag when i open certain apps: like spotify and vscode that are based on electron, or firefox, and resizing those sometimes makes my cursor lag.

I have a Ryzen 7700x cpu with 32gb ram, so, i guess it’s not a performance problem.

In case it’s relevant to your situation as well, maybe try ramping up your minimum GPU clock?

My understanding is that generally, the graphical effects on your desktop - unless it’s using software rendering - are GPU-bound rather than CPU-bound. If that’s the case, then even a really souped-up CPU might not avoid issues caused by inefficiencies in the GPU’s functioning.