
Holding a key while moving the mouse causes mouse input to judder on Xwayland
Closed this issue ยท 6 comments
Bug Description
As the title says, holding any key while moving the mouse causes the camera to judder. Releasing that key brings smooth camera motion back. This only happens on the X11 backend; setting env DISPLAY=
on a Wayland session makes this issue go away. Removing Sodium also solves the problem.
Reproduction Steps
- Start moving your mouse around (while standing still)
- Hold any key, doesn't have to be a movement key, can even be an unbound one
- Observe the mouse input judder
- Stop holding that key
- Observe smooth mouse input
Log File
Crash Report
Does this still happen with Sodium if you downgrade to Minecraft 1.21.4?
And if it does, can you try adding the following line to the config/sodium-mixin.properties
file to see if it makes any difference?
mixin.workarounds.event_loop=false
Does this still happen with Sodium if you downgrade to Minecraft 1.21.4?
It happens even on 1.21.1.
can you try adding the following line to the config file to see if it makes any difference?
Now the judder seems to happen regardless of keyboard input.
Using the Niri compositor, this issue doesn't appear to happen for me.
Can you please provide more details about what compositor and software versions you are using?
A Spark profile would also be useful to determine if this is caused by slow input handling or whether the input events are just being interpreted incorrectly. You can get that by downloading the Spark mod and using the command /sparkc profiler start --thread * --timeout 15
while in-game and moving the mouse.
Can you please provide more details about what compositor and software versions you are using?
KWin (Plasma 6.4.3)
MultiMC 5 0.7.0
A Spark profile would also be useful
https://spark.lucko.me/ysKb60y13a
Hope that helps
MangoHud seems to be enabled in the Spark profile and is accounting for an extremely large percentage of CPU time (>30%) when flipping the frame.