gamescope icon indicating copy to clipboard operation
gamescope copied to clipboard

Mouse pointer speed slower in gamescope

Open Chiheisen opened this issue 3 years ago • 44 comments

Mouse pointer speed in gamescope windows is noticeably slower than when running without. This happens on all games I've tried. Mouse pointers on (other?) XWayland windows don't exhibit the same behavior. Acceleration profile is flat both in and out of gamescope.

Setupinfo: WM: sway, commit: 009c58fc mesa git, commit a1c56b80915 Gamescope, commit g756b3a6 3 monitors: 2 are 1080p, one 1440p I normally run gamescope with just -W 2560 -H 1440, but it also happens with upscaling, specifying -f and pretty much any combination of flags.

Not sure which logs would be helpful, but just tell me if any would be then I'll post them.

Chiheisen avatar May 16 '21 18:05 Chiheisen

I can confirm that when rendering the game at a high resolution (4K in my case) and then rendering it on the client at a lower resolution (in my case, a 2560x1440 monitor) the mouse is slow indeed.

Rendering at the same resolution does not have that issue.

Sojiro84 avatar Jun 29 '21 12:06 Sojiro84

I'm fairly certain I figured out why this happens: My mouse / pointer in sway is configured with pointer_accel = 1 Setting it to 0 makes the mouse behave the same in and out of gamescope. I'm going to leave this open as I'm not sure whether this is expected behavior or not. Feel free to close if this working as intended.

Chiheisen avatar Jul 07 '21 19:07 Chiheisen

I am on KDE Plasma BTW.

Sojiro84 avatar Jul 07 '21 19:07 Sojiro84

I noticed this also with BattleTech (Not using native) Unfortunately not all games have mouse cursor speed options in-game.

jarrard avatar Sep 16 '21 12:09 jarrard

Anyone find a work around for this issue? Is all we need is mouse pointer acceleration enabled for gamescope environment?

jarrard avatar Oct 14 '21 08:10 jarrard

There should be a way to configure this, having a different cursor behaviour inside gamescope than outside it makes playing some games (like osu! or shooters) really hard. This should not just be an "acceleration on/off" toggle of sorts, as in my case, I use

input ... {
    accel_profile flat
    pointer_accel -0.3
}

in swaywm.

vicky5124 avatar Nov 13 '21 13:11 vicky5124

When i start Control under gamescope i cant look around with the mouse.

massatt212 avatar Feb 11 '22 12:02 massatt212

Playing Battlefield 1 I found out the mouse wasn't working. I could move around but I couldn't look around. Turning OFF raw mouse input fixed this problem, but after a while the whole game would begin to stutter and jitter and the aim was jumping all over the place. All of these issues were not present without gamescope.

I'm on a Ryzen 5 3400G (iGPU) on Arch Linux.

tralph3 avatar Feb 13 '22 17:02 tralph3

I'm on Manjaro KDE using Wayland. My cursor stutters and sometimes it feels the cursor is sticky and moves erratically. It also seems to have acceleration even though I have that disabled on KDE.

Tested only on Dota 2.

nfp0 avatar Mar 08 '22 20:03 nfp0

In Apex it goes crazy, can't even play the game with a mouse 😂

massatt212 avatar Mar 08 '22 20:03 massatt212

Can confirm that it still happens. My mouse cursor gets very slow on gamescope.

italoghost avatar Apr 21 '22 23:04 italoghost

I feel light slowdowns when using Gamescope in Splitgate. Mostly on up/down axis. Could it be FPS related?

Operating System: Fedora Linux 36
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.17.12-300.fc36.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,6 GiB of RAM
Graphics Processor: AMD DIMGREY_CAVEFISH (RX 6600)

Edit: It only happens when moving in diagonal axis up/left.

Akselmo avatar Jun 06 '22 20:06 Akselmo

Still happening.

erdemozdemir98 avatar Jun 11 '22 14:06 erdemozdemir98

I'm facing the same problem but in reverse. I have a game that is running on the same resolution as gamescope is set to and yet my mouse is moving noticeably faster than outside of gamescope. This makes no real sense to me as it's the exact same resolution. I'm on wayfire. Any ideas?

UltraBlackLinux avatar Aug 03 '22 11:08 UltraBlackLinux

I think gamescope uses a fixed mouse sensitivity. That's why people with higher sensitivity are complaining about the slower speed while other people with lower sensitivity complain about the higher speed.

erdemozdemir98 avatar Aug 22 '22 12:08 erdemozdemir98

Possibly related: https://github.com/Plagman/gamescope/issues/628

OneOfOne avatar Sep 22 '22 07:09 OneOfOne

Can confirm, although in my case, when using Gamescope at a lower resolution, my cursor speed is faster than the host (might be due to the 1000hz and 12000 dpi mouse?), if the Gamescope launched with the same resolution as the host, the cursor is the same speed as in the host.

And the lower resolution you use, the faster the cursor speed is, at least that's what I feel when testing at a bunch of resolution, I'm not sure if it is related or not just because the screen area is smaller thus the mouse reach the other side faster.

deanrih avatar Oct 06 '22 05:10 deanrih

I think multimonitor setups are confusing gamescope.

Akselmo avatar Oct 06 '22 09:10 Akselmo

Mousespeed itself is manageable but the mousewheel is unusable in this state.

jdamboeck avatar Oct 23 '22 01:10 jdamboeck

Some people are using more sophisticated acceleration profiles available in X, like this xorg.conf snippet:

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    (...some irrelevant stuff...)
    Option         "AccelerationNumerator" "17"
    Option         "AccelerationDenominator" "8"
    Option         "AccelerationThreshold" "0"

Those options (or, just behavior of the mouse after applying them) are not grabbed by gamescope either, and the custom acceleration profile created by modifying those numbers gets lost, when playing through gamescope.

Cat-Lady avatar Dec 06 '22 05:12 Cat-Lady

I have tried gamescope in both X11 and Wayland, and the issue is identical for me in both. I am using the default mouse settings in Manjaro KDE, which makes the gamescope mouse movements much slower. When I tried using gamescope on Wayland it was via Hyprland, and I was using it because Hyprland wasn't capturing the mouse within a fullscreen application. This makes playing RTS games difficult, as I expect the mouse to move the same distance both in and out of game.

ngraham20 avatar May 02 '23 15:05 ngraham20

Any workaround for this?

kolAflash avatar Jun 14 '23 23:06 kolAflash

Still having these issues

Haxorzz avatar Jul 02 '23 16:07 Haxorzz

I'm also having this issue. It's annoying to have to separate mouse speed especially for rts.

Tesla-Tank avatar Jul 18 '23 03:07 Tesla-Tank

Same issue here, the mouse speed is very slow. I'm on a 4 monitor setup. I don't have any weird settings set in Gnome for my mouse besides having the acceleration profile set to "flat"

MasterJubei avatar Jul 23 '23 22:07 MasterJubei

hey guys, idk about ya'll but i think this issue might have been fix, well atleast for me. the mouse movement seems to be sync with the wm itself.

EvilBoi123 avatar Sep 03 '23 17:09 EvilBoi123

For me, it is in sync with WM only when the cursor is shown. With invisible cursor (like mouse look in most games), acceleration profile and sensitivity settings are still thrown out of the window (metaphorical one, not the window manager), sadly.

Cat-Lady avatar Sep 03 '23 20:09 Cat-Lady

I haven't deal with gamescope in a long time but I still believe it is caused by the different size/resolution the gamescope has compared to your actual resolution, I have 4K monitor and I tried playing some games using gamescope and set the resolution to 1080p (smaller than 4K obviously), the cursor is faster than it should, not slower, but if I set it as the same as my monitor, it move about the same, I'll test this again.

deanrih avatar Sep 04 '23 02:09 deanrih

As said earlier, it is not the whole issue. The main problem is that - even using 1:1 resolution in gamescope - host stuff, like acceleration profile mentioned in: https://github.com/ValveSoftware/gamescope/issues/196#issuecomment-1338777578

...is totally ignored (for situations, where cursor is invisible). It only works fine for visible cursor.

Cat-Lady avatar Sep 07 '23 12:09 Cat-Lady

Confirming. Just tried gamescope for the first time in a steam game, and cursor is old-school X11 "X" symbol in the game, and mouse movement is very slow. I am using Debian Stable with KDE. Radeon card, KDE mouse acceleration settings are ignored, and mouse speed seems to be running with default settings.

github12101 avatar May 06 '24 23:05 github12101