qtile: Nvidia drivers cause lag / slowdown when resizing or dragging windows

The issue:

I am using EndeavourOS’s community Qtile config and have only changed some keybindings currently, but I had the same issue on Fedora with another config, so I am pretty sure this is an issue with either Qtile or the nvidia drivers / how I installed the drivers.

Qtile version: 0.22.1

So far I tried installing the nvidia drivers in two different ways:

  1. pacman -S nvidia nvidia-utils nvidia-settings xorg-server-devel opencl-nvidia
  2. From Lutris recommendation for Arch: sudo pacman -S --needed nvidia-dkms nvidia-utils lib32-nvidia-utils nvidia-settings vulkan-icd-loader lib32-vulkan-icd-loader

The issue is highly pronounced when for example watching a video on the second monitor (with mpv) or having discord open. Disabling hardware acceleration on discord removes the issue with discord.

Video example with nvidia drivers: https://youtu.be/4nPN730OHIg

Example with nouveau drivers: https://youtu.be/eGI8tQhGBDQ

I would be fine with using nouveau drivers except that high refresh rate does not seem to be working as smoothly.

Required:

  • I have searched past issues to see if this bug has already been reported.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 2
  • Comments: 28 (13 by maintainers)

Most upvoted comments

Sorry for the radio silence…

I am happy to merge #4141 so that at least a large part of your issues are fixed. I have not yet managed to fix the remaining issue you’re having with the ‘stutter’.

I still need some confirmation from users that #4141 is a good way to fix it though…

@Dolvur No, I don’t have any issues dragging the window between monitors. But both of my monitors are 60HZ, maybe that’s the reason

That issue is fixed by #4091, but it’s not included in 22.1. You can mitigate the issue by setting your mouse’s polling rate to a lower frequency; 125 Hz worked perfectly for me.

Thanks for the help! Sadly it only fixed a small part of the problem though. I didn’t manage to decrease the polling rate of my g305, but I upgraded to the latest qtile 0.22.2.dev115+g653c52c2 with the git AUR. Moving a floating window is now very snappy except when I run a video with mpv (guessing it is because of some hardware acceleration stuff, but I am not sure).

The resizing still seems laggy and I also got another bug during the recording where the tiling broke a little, which might be unrelated since I am not using the release version.

https://youtu.be/LSQFDdl3CuU

That tiling breakage should be fixed with #4164

You would add x11_drag_polling_rate = 60 to your qtile config file, not the xorg config.

You can try to disable picom if it’s enabled and/or disable composition pipeline in nvidia-settings