Bug 463879 - Virtual desktops Pager applet makes windows resize stutter/jerky with NVIDIA hardware rendering
Summary: Virtual desktops Pager applet makes windows resize stutter/jerky with NVIDIA ...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.26.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 460678 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-01-05 14:10 UTC by Bruno Filipe
Modified: 2023-05-09 19:53 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Filipe 2023-01-05 14:10:51 UTC
SUMMARY
***
When the virtual desktops Pager applet is enabled, resizing windows lags really hard. It also seems to increase random stutters, which exists anyway with Nvidia+KDE. Pretty sure it didn't happen with my last GPU (RX580 on AMDGPU).

It is likely related to OpenGL+Nvidia since it also doesn't happen if I set QtQuick rendering to "Software" in kcmshell5 qtquicksettings
***


STEPS TO REPRODUCE
1. Have at least two virtual desktops.
2. Add Pager widget to your panel.
3. Resize any window

OBSERVED RESULT
The entire desktop stutters really hard while you resize windows.

EXPECTED RESULT
The usual Nvidia resize stutters anyway but it is a lot better without pager enabled.

SOFTWARE/OS VERSIONS
Linux @ Arch Linux on Kernel 6.1.2
KDE Plasma Version: 5.26.5
KDE Frameworks Version:  dunno
Qt Version: 5.15.7

ADDITIONAL INFORMATION

GPU: RTX 3090 on latest NVIDIA proprietary driver (525.60.11)
Workaround: Set Software rendering in 'kcmshell5 qtquicksettings'
qdbus org.kde.KWin /KWin supportInformation -> https://invent.kde.org/-/snippets/2461
Comment 1 Bruno Filipe 2023-01-09 22:47:34 UTC
Another update, it looks a lot better when running only kwin_x11 --replace with the env var __GL_MaxFramesAllowed=1 - but this hack introduces problems of their own, out of topic for this issue, but still worth mentioning the behavior.

Without the env var it also looks extremely smooth if I kill plasmashell, or if I run plasmashell with picom compositing instead of kwin. Suggess not a problem in Kwin or Plasmashell itself, but a specific problem to plasmashell+kwin_x11 (on Nvidia OpenGL drivers).

Another thing worth mentioning, this bug https://bugs.kde.org/show_bug.cgi?id=436902 is also kinda mitigated by setting qtquick to Software. Instead of notifications dropping hundreds of frames, it drops a couple which is negligible unless you're gaming and being flooded on Discord :P
Comment 2 David Edmundson 2023-01-11 12:23:07 UTC
Can you double check the pager makes a difference. It doesn't make much sense other than more windows are redrawing

We have other reports about nvidia resizing being slow that we can work on.
Comment 3 Sandro 2023-01-11 21:48:15 UTC
Just tested this out and removing the pager applet definitely makes a huge difference for me.
Comment 4 Sandro 2023-01-11 21:48:45 UTC
*** Bug 460678 has been marked as a duplicate of this bug. ***
Comment 5 Bruno Filipe 2023-01-11 23:37:42 UTC
(In reply to David Edmundson from comment #2)
> Can you double check the pager makes a difference. It doesn't make much
> sense other than more windows are redrawing
> 
> We have other reports about nvidia resizing being slow that we can work on.

It does, at least on my setup. Just reproduced on a clean Fedora to rule out any Arch oddness or config issue. 

FWIW it's a 75hz (74,991~) Ultrawide 2560x1080 monitor, GSync disabled when testing, everything on default except I added a couple of virtual desktops so they show up on the widget.
Comment 6 Bug Janitor Service 2023-01-26 05:05:41 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bruno Filipe 2023-01-27 20:53:21 UTC
Which info could I provide to help debug this?
Comment 8 Álvaro M. 2023-05-09 19:53:32 UTC
This also happens with an AMD GPU.