Kwin possibly freezing Kingdom Come deliverance 2

Basically, the image randomly freezes completely, but the game keeps running in the background. The sound works fine, and it even registers inputs. The only way to unfreeze it is by pressing “Esc” or by turning the monitor off and on. I was assuming it was Proton, but then later I was multitasking while the game was minimized and the same thing happened on my system, frozen image.

I tried different Proton versions and tinkered some launch options but nothing really worked. I started thinking the problem was wayland, so I installed gnome real quick and everything seems to be fine. I now assume its Kwin but I have no idea if its something I messed up.

It doesn’t happen with any other game in my library, only with KCD2

​System Specs:

​OS: CachyOS (Arch-based)

​DE: KDE Plasma (Wayland)

​CPU: Ryzen 5 7600

​GPU: Radeon RX 7800 XT

​RAM: 32GB DDR5

I’m sharing this to see if anyone else is facing similar issues with heavy DX12/VKD3D titles on RDNA3 hardware under KWin, or if there’s a specific compositor setting (like Direct Scanout handling) that I should tweak.

​Hope this helps!

From what I found “direct scanout” could be the cause of the issue.

To disable it, add

KWIN_DRM_NO_DIRECT_SCANOUT=1

into /etc/environment.

Then restart your system.

If that doesn’t help then instead of using gnome try using KDE Plasma under x11 (which you might need to install) instead of Wayland

Yeah KDE under x11 works too, thanks! I wonder whats causing the issue on Wayland though

No problem. So disabling direct scanout didn’t help?

I tried yesterday but it didn’t work