Hi folks, I have a totally bizarre issue… wonder if anyone can help.
My system works totally as normal until I open up a game that uses OpenGL (or a Proton game that uses DirectX equally, as that runs through OpenGL as I understand it). While the game is running, I can tab out and everything works fine. The game works fine, too.
However, as soon as I close the game, my system starts massively lagging. If I’m in a voice call, voices start breaking up and rapidly become so choppy they’re unintelligible; if I’m typing in an input field, I have multiple seconds of lag between my typing and the text appearing in the field; if I’m dragging windows around the desktop, it goes so incredibly slowly it’s unreal.
If I open any OpenGL application again, disable compositing in KWin, or run
kwin_x11 --replace, everything goes back to normal… until I next close an OpenGL application, when the problems return. However, interestingly, if I run
kwin_x11 --replace and then subsequently open up an OpenGL application, this doesn’t seem to happen… which is thoroughly unhelpful for capturing any logs that might be left to indicate a root cause.
I’m honestly at a loss as to where I’d even begin to troubleshoot this. Can anyone help? I’ve tried both using default kwin and kwin_lowlatency, to no avail. I think it’s a compositor issue, but I’m not experienced enough in KWin internals to work that out properly.
I am using the NVidia DRM KMS as instructed on the Arch wiki, and have
TripleBuffer on in my xorg.conf. I have tried both with
ForceFullCompositionPipeline set and unset. I’m using an NVIDIA GeFore GTX 1060 3GB, with an Intel i5-4460 processor.