UI performance of Nvidia cards on linux!

@generix Sorry to bother you. Do you know by chance how to apply those two patches? Could you please explain if you do. Was googling for some time and can’t find any clear instructions. I really want to try them. Thank you.

Yes, but I don’t really want to help you break your system, since this would overwrite distribution provided files;)
Like said in my previous post, the second patch can be substituted by setting the variable in /etc/environment depending on distro used.
If set correctly,
export | grep GL
should output the variable.

BTW, I did play around with that vsynctester though I have the opinion that WebGL is not really good in Linux. Running on Intel I have the same results as on nvidia, not even needing to switch back and forth like you did, I just need to move the mouse over firefox tabs or the gnome dash so that they’re highlighted and tooltips appear to get it out of vsync. On a FHD monitor.

I’m not going to try this on my main system. I have a bunch of SSDs laying around for that. Fresh install on separate drive is a matter of 15 minutes :) And I’m not using distribution provided files, I use this repo since beginning: pp3345/gnome-with-patches Copr
I asked the maintainer if he could implement this patches in a next build but he is not answering.

First of all, you would need to install meson and ninja
Then download and unpack mutter-3.36.3
inside the dir, apply patches: patch -p1 < /path/to/patches/*.patch
mkdir build && cd build
then configure:
meson
and build:
ninja
if all runs well, install:
ninja install
but
This won’t work that easy because I skipped the hard part: you will have to install the -dev packages for the dependencies, like xorg, xkb, mesa, pango, libwacom, cogl, clutter, libgudev, wayland and many more since you need the headers of those packages to link against their libs. Can be tedious on binary distros.
better option
So if you’re interested in running a custom patched system without much hassle and are going to use an extra disk for it anyway, you should take a look at Arch Linux and how to modify PKGBUILDs to use custom patches.

Thank you for your instructions. Yea, seems a bit complicated :) To use Arch is indeed good advice. Have to think about all of this.
Daniel asked me to test one more patch.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1309.patch
I wish I have more free time for that.

I have the exact same struggles when using the NVIDIA binary driver (I’m using KDE with kwin, which is especially awful when it comes to performance and lag). I eventually just gave up and figured that the best solution is just to disable compositing, as this literally skyrockets the performance and fixes quite a few issues (running KDE 5.18.4 with NVIDIA 440.82 and kernel 5.6.18):

  • The Steam tray icon in the lower bottom right does not respond to clicks when compositing is on in KDE
  • Applications start faster (I’m running on a NVME drive and the performance difference is quite noticable)
  • Applications feel a lot smoother when moving windows
  • Games perform slightly better and have less lagging (both native and using wine with DXVK)
  • Games tend to have less frequent hangs when exiting back to the desktop (when using wine with DXVK)