There is a problem while playing VULKAN (or dxvk) games with nvidia optimus render offload on xwayland.
When playing a game, if framerate does not keep up with vsync rate (60fps in my case), screen starts glitching by momentarily showing some frames that were rendered a little earlier.
Driver: 470.57.02
OS: Manjaro [testing branch]
Kernel: Linux 5.10.54-xanmod1-1-lts
Hardware: HP dc0019ur (Omen 15) Laptop with Intel UHD630 + Nvidia GTX1050 2GB
Relevant bleeding-edge packages installed (from AUR): xorg-xwayland-git, libdrm-git lib32-libdrm-git, xf86-video-intel-git. Installed these thinking it may resolve the issue. but it didn’t.
Cross-DE (and OS?) issue then. I use KDE Plasma 5.22.4, with vanilla KWin, not KwinFT (which is sway-based). Happy and sad at the same time that you confirmed the issue. What’s your OS, kernel and hardware?
Hey Guys, unfortunately it would seem that this still reproduces with the latest 495 beta driver. It’s not specific to Vulkan, OpenGL is affected too. I’ve started looking into it. Interestingly, as far as I can tell it doesn’t reproduce with full-screen applications with compositors that support direct scan-out (such as Weston or GNOME).
I checked with 495.29.05 and xserver:master(f37d11cd96ba15b40a497d4d7bdd14a77ea9b476).
sway(wlroots) still apears tearing.
weston is less but sometimes happes same glitch like tear.
This is a driver bug. We weren’t synchronizing frame presentation with Xwayland correctly which could cause the visual artifacts you’ve been observing. I believe the direct scan-out thing mentioned above was just a coincidence in that it changes the timing of things which could mask the issue. I’ve got a candidate fix which I’m just finishing up testing, I’ll try to get it out as soon as possible. Thanks everyone who provided their data-points here.
Eh. It’s been quite a while since we heard from the developer (and he/she seemed to be finishing up a fix). I can just hope that the fix lands soon and isn’t forgotten.
Can a developer confirm this is being worked on?
Can not replicate a bug-free axperience. Same behaviour as with older drivers on Nvidia 510.47.03 and KDE 5.23.5. There was an update 510.47.03-2 from my distro, same thing.