Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse pointer speed slower in gamescope #196

Open
Chiheisen opened this issue May 16, 2021 · 30 comments
Open

Mouse pointer speed slower in gamescope #196

Chiheisen opened this issue May 16, 2021 · 30 comments
Labels
nested Nested mode via X11/Wayland

Comments

@Chiheisen
Copy link

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.

@Sojiro84
Copy link

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.

@Chiheisen
Copy link
Author

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.

@Sojiro84
Copy link

Sojiro84 commented Jul 7, 2021

I am on KDE Plasma BTW.

@emersion emersion added the nested Nested mode via X11/Wayland label Jul 25, 2021
@jarrard
Copy link

jarrard commented Sep 16, 2021

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

@jarrard
Copy link

jarrard commented Oct 14, 2021

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

@vicky5124
Copy link

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.

@massatt212
Copy link

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

@tralph3
Copy link

tralph3 commented Feb 13, 2022

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.

@nfp0
Copy link

nfp0 commented Mar 8, 2022

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.

@massatt212
Copy link

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

@italoghost
Copy link

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

@Akselmo
Copy link

Akselmo commented Jun 6, 2022

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.

@erdemozdemir98
Copy link

Still happening.

@UltraBlackLinux
Copy link

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?

@erdemozdemir98
Copy link

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.

@OneOfOne
Copy link

Possibly related: #628

@deanrih
Copy link

deanrih commented Oct 6, 2022

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.

@Akselmo
Copy link

Akselmo commented Oct 6, 2022

I think multimonitor setups are confusing gamescope.

@jdamboeck
Copy link

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

@Cat-Lady
Copy link

Cat-Lady commented Dec 6, 2022

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.

@ngraham20
Copy link

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.

@kolAflash
Copy link

Any workaround for this?

@Haxorzz
Copy link

Haxorzz commented Jul 2, 2023

Still having these issues

@Tesla-Tank
Copy link

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

@MasterJubei
Copy link

MasterJubei commented Jul 23, 2023

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"

@EvilBoi123
Copy link

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.

@Cat-Lady
Copy link

Cat-Lady commented Sep 3, 2023

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.

@deanrih
Copy link

deanrih commented Sep 4, 2023

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.

@Cat-Lady
Copy link

Cat-Lady commented Sep 7, 2023

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:
#196 (comment)

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

@github12101
Copy link

github12101 commented May 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nested Nested mode via X11/Wayland
Projects
None yet
Development

No branches or pull requests