Xwayland glitches


I recently began testing xwayland gaming on my machine. While playing witcher 3 with wine and DXVK, I ran into some issues that happen on xwayland but not on xorg:

  1. there is some diagonal tearing in the loading screens and the map; also the loading screen animations dont feel as smooth on xwayland as on xorg

  2. there is some weird stuttering/jittering on xwayland but not on xorg; like the camera shakes. Frames don’t seem to drop. It’s noticeable in cities and around groups of NPCs (based on my testing).

My OS is Fedora 34, I’m running Gnome 40.4, nvidia driver 470.63.01, xwayland 21.1.2, wine 6.13, DXVK 1.9.1. Gpu is GTX 1050 Ti.

These are the envs I use when launching the game: WINEESYNC=1 __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1 __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only mangohud gamemoderun
Mangohud is used to limit fps to 40.
Attached is my nvidia bug report.

nvidia-bug-report.log.gz (1.1 MB)