Significant mouse acceleration when using fractional scaling on KDE wayland
Your system information
- System information from steam (
Steam->Help->System Information) in a gist:
Computer Information: Manufacturer: ASUSTeK COMPUTER INC. Model: TUF B450M-PLUS GAMING Form Factor: Desktop No Touch Input Detected Processor Information: CPU Vendor: AuthenticAMD CPU Brand: AMD Ryzen 5 5600X 6-Core Processor CPU Family: 0x19 CPU Model: 0x21 CPU Stepping: 0x0 CPU Type: 0x0 Speed: 4651 MHz 12 logical processors 6 physical processors Hyper-threading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Supported SSE41: Supported SSE42: Supported AES: Supported AVX: Supported AVX2: Supported AVX512F: Unsupported AVX512PF: Unsupported AVX512ER: Unsupported AVX512CD: Unsupported AVX512VNNI: Unsupported SHA: Supported CMPXCHG16B: Supported LAHF/SAHF: Supported PrefetchW: Unsupported Operating System Version: "Arch Linux" (64 bit) Kernel Name: Linux Kernel Version: 6.5.6-1-cachyos X Server Vendor: The X.Org Foundation X Server Release: 12302001 X Window Manager: KWin Steam Runtime Version: steam-runtime_0.20230801.56012 Video Card: Driver: AMD AMD Radeon RX 6750 XT (navi22, LLVM 16.0.6, DRM 3.54, 6.5.6-1-cachyos) Driver Version: 4.6 (Compatibility Profile) Mesa 23.2.1-arch1.2 OpenGL Version: 4.6 Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 164 Hz VendorID: 0x1002 DeviceID: 0x73df Revision Not Detected Number of Monitors: 2 Number of Logical Video Cards: 1 Primary Display Resolution: 2560 x 1440 Desktop Resolution: 4960 x 1440 Primary Display Size: 23.62" x 13.39" (27.13" diag), 60.0cm x 34.0cm (68.9cm diag) Primary VRAM: 12288 MB Sound card: Audio device: ATI R6xx HDMI Memory: RAM: 15903 Mb VR Hardware: VR Headset: None detected Miscellaneous: UI Language: English LANG: en_US.UTF-8 Total Hard Disk Space Available: 465895 MB Largest Free Hard Disk Block: 86856 MB Storage: Number of SSDs: 3 SSD sizes: 1000G,512G,0B Number of HDDs: 0 Number of removable drives: 0
- Have you checked for system updates?: [Yes/No]
- Yes
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:
- Test for mouse accleration with 125% (I use this method to test https://www.youtube.com/watch?v=5Cy8G2ElLOk)
- Test again with 100% scaling.
- Observe large difference in results.
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:
-
when i turn GPU scaling on i am able to play at 4:3 without the wierd mouse acceleration, theres a catch tho. i have no idea why but this worked for me.
- turn on GPU scaling,
- restart the game
- join training.
- Go Esc > Graphic > Graphic
- turn brightness up by 1%, press apply
- turn brightness down by 1%, press apply
- now walk around and see if its better.
- if not > repeat.
-
i would also recommend turning anti lag on
Remember: everytime you tab out, open an Overlay or press Esc, u maybe will have to repeat this process. I have also noticed that its not just the mouse but the keyboard aswell beeing affected.
-Pls dont ask me why this works i have absolutely no idea.
- Fullscreen mode in source games was always a bit buggy but this is kinda on another level.
- I believe this could be a problem with your inputs having to go through windows, raw mouse input could maybe fix this.
- Windows thinks ur still on 19:6 and gets confused, but to be honest ive never seen sth like this.
- As it is now i havent found a more consistent way to fix this issue.
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%
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.
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.
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.
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.
Seeing the same thing across all of plasma, mouse acceleration in games when fractional scaling is enabled. Gamescope makes no difference also