r/linux_gaming • • Dec 18 '23

Games stuttering when the second screen is connected.

I checked what mangohud reports, the frametimes, (min,avg) are the same regardless if the game is "stuttery" or not. Immediately after disconnecting the 2nd monitor the game is running stutter less. While having both monitors connected and running, sometimes it lets me play a minute without stutters, then they start again. Mostly noticed when moving the camera. I also tested minecraft (which runs smoothly on pretty much every PC) frametimes didn't change at all (2ms-4ms blank map) yet the game was stuttering when the second monitor was connected, usually while having both monitors running i could play smoothly for 20 seconds.

I don't think this is the game issue, like i mentioned above the fps, and frametimes stay the same.

It started to happen (i am pretty sure it was a nvidia update) about few months ago. Both monitors use the same refresh rate (144).

Currently running NVIDIA 545.29.06, with allow flipping disabled.

2 Upvotes

9 comments sorted by

3

u/Leopard1907 Dec 18 '23

Missing info:

  • Desktop env
  • X or Wayland

Did you bring up fps counters of monitors if they have it? Does that show a serious fluctation?

1

u/Similar_Adeptness232 Dec 18 '23 edited Dec 18 '23

X11, KDE 5.27.10, 6.6.7-arch1-1 No, both monitors don't have that function, but one of them has "display refresh rate" and it always showed 144. Thanks for replying.

1

u/Similar_Adeptness232 Dec 18 '23

Also, CS2 and CSGO are not stuttering. But Minecraft, Cyberpunk (latest GE-PROTON), Witcher (latest GE-PROTON) do.

3

u/10xJSChad Dec 18 '23

Had this or a similar issue, bad hdmi connection would drop for tiiiiny amount of time, so short that absolutely nothing visually changed on screen, but this would trigger udev hotplug events nonstop causing unbearable stutters. Solved by just swapping the hdmi cable out, have a look at your udev events and see if something happens there when you experience the stutters.

1

u/Similar_Adeptness232 Dec 18 '23

Thanks for replying udevadm monitor --property --udev Doesn't show anything.

1

u/10xJSChad Dec 18 '23

Anything in journalctl -f when it happens?

1

u/Similar_Adeptness232 Dec 18 '23 edited Dec 18 '23

completely clean. I recorded the window with Xcomposite (obs), it was smooth, not even a bit stuttering. But when i recorded the screen (screen capture XSHM obs) it was stuttering.
No Source game (Portal 2, CSGO) isn't stuttering. Just seems like Proton games and minecraft.

3

u/HotTakeGenerator_v5 Dec 18 '23

turn off compositor

1

u/Similar_Adeptness232 Dec 20 '23

worked, thank you