ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
764 stars 69 forks source link

On Wayland, SDL_VIDEO_DRIVER=x11 causes a weird mouse input bug that makes the game unplayable. #3725

Closed PaniniLinguini closed 1 month ago

PaniniLinguini commented 1 month ago

Your system information

Operating System Version:
"Arch Linux" (64 bit)
Kernel Name: Linux
Kernel Version: 6.8.7-cb1.0.lto.fc40.x86_64
X Server Vendor: The X.Org Foundation
X Server Release: 12302006
X Window Manager: Hyprland
Steam Runtime Version: <Runtime disabled>
Video Card:
Driver: AMD AMD Radeon RX 5700 XT (radeonsi, navi10, LLVM 17.0.6, DRM 3.57, 6.8.7-cb1.0.lto.fc40.x86_64)
Driver Version: 4.6 (Compatibility Profile) Mesa 24.0.5-arch1.1.1
OpenGL Version: 4.6
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 239 Hz
VendorID: 0x1002
DeviceID: 0x731f
Revision Not Detected
Number of Monitors: 1
Number of Logical Video Cards: 1
Primary Display Resolution: 2560 x 1440
Desktop Resolution: 2560 x 1440
Primary Display Size: 23.62" x 13.39" (27.13" diag), 60.0cm x 34.0cm (68.9cm diag)
Primary VRAM: 8192 MB

I am using arch inside a distrobox (podman) container on a fedora atomic system, however this shouldn't matter. I am using Hyprland and have not checked if this is reproducible on KDE. I suspect the issue may be unrelated to CS2 but compositor-related, but I am posting this here so it shows up on Google. It could also be a bug with using steam-native.

SDL_VIDEO_DRIVER=wayland fixes the issue and gives me lower input latency; however, my frame rate doesn't go above my monitor's refresh rate.

You have to comment out SDL_VIDEO_DRIVER=x11 from cs2.sh, the default on sdl3 is wayland so to switch back to x11 set your launch options to SDL_VIDEO_DRIVER=x11 %command%.

PaniniLinguini commented 1 month ago

Closing since my setup is obviously unsupported, and I have no interest in investigating this further.