ValveSoftware / csgo-osx-linux

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

Significant mouse acceleration when using fractional scaling on KDE wayland #3472

Open hasanjones opened 1 year ago

hasanjones commented 1 year ago

Your system information

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large pastes as a Github Gist.

Unless my monitor is at 100% scaling, I get significant mouse acceleration in CS2. This didn't happen in CSGO with raw input enabled, but that isn't available in CS2 settings.

Steps for reproducing this issue:

  1. Test for mouse accleration with 125% (I use this method to test https://www.youtube.com/watch?v=5Cy8G2ElLOk)
  2. Test again with 100% scaling.
  3. Observe large difference in results.
IoverfixEverything commented 1 year ago

Hey,

been working on the same thing for 2 hours now. Im on a 240hz 1980 x 1080 Samsung Odyssee but play on 4:3 res 1280 x 1080. I´m on AMD so i have no idea if this will be the same for you, but heres what i found:

henrym11106 commented 1 year ago

If I'm not mistaken, the same thing happens in Portal 2 DXVK; the use of in-game scaling results in broken and inconsistent mouse aim; small/slow movements do not register, and what is picked up feels like a random sensitivity setting +accel.

related? #3342

on X11 running non-native res fullscreen stretch also results in awful, pixelated rendering. my workaround for CS2 on X11 is to scale the desktop with e.g. xrandr --output DisplayPort-0 --mode 1920x1080 --scale-from 1024x768 --rate 144 --pos 0x0 --set TearFree off --set "scaling mode" "Full"; gamemoderun %command%

hasanjones commented 1 year ago

If I'm not mistaken, the same thing happens in Portal 2 DXVK; the use of in-game scaling results in broken and inconsistent mouse aim; small/slow movements do not register, and what is picked up feels like a random sensitivity setting +accel.

related? #3342

on X11 running non-native res fullscreen stretch also results in awful, pixelated rendering. my workaround for CS2 on X11 is to scale the desktop with e.g. xrandr --output DisplayPort-0 --mode 1920x1080 --scale-from 1024x768 --rate 144 --pos 0x0 --set TearFree off --set "scaling mode" "Full"; gamemoderun %command%

I don’t think that’s the same problem. I’m not using any ingame scaling options, just running at native. My desktop on that monitor is scaled to 125% and that’s what causes the issue. And it’s only acceleration in my case. This happens on DXVK and Vulkan.

Even with the game running, I can alt-tab, open settings, change scaling to 100%, and the issue disappears ingame.

henrym11106 commented 1 year ago

if your desktop is scaled to a higher virtual res the game might be scaling to match. are there any rendering issues? I get jaggedness with any in-game scaling which is obvious with the crosshair and text rendering.

hasanjones commented 1 year ago

if your desktop is scaled to a higher virtual res the game might be scaling to match. are there any rendering issues? I get jaggedness with any in-game scaling which is obvious with the crosshair and text rendering.

Nope. I don’t see any visual difference ingame when I change desktop scaling.

hasanjones commented 7 months ago

As of Plasma 6, I am now seeing this same issue in all FPS games. Raw input or not, using anything other than 100% scaling causes acceleration. This doesn't seem to be a CS2 specific issue after all.

DillBee commented 3 months ago

Seeing the same thing across all of plasma, mouse acceleration in games when fractional scaling is enabled. Gamescope makes no difference also