Opened 10 months ago

Last modified 6 months ago

#14519 new defect

Lower mouse sensitivity / slower cursor in SDL Wayland mode in Conquests of the Longbow

Reported by: shmerl Owned by:
Priority: normal Component: Graphics
Version: Keywords:
Cc: Game: Conquests of the Longbow

Description

When playing Conquests of the Longbow using SDL in Wayland mode (SDL_VIDEODRIVER=wayland), the cursor is noticeably slower (or mouse has lower sensitivity?) than when playing it with SDL in x11 mode.

Set up:

  • KDE Plasma / kwin 5.27.5 in Wayland session.
  • scummvm: 2.7.0
  • libsdl2: 2.26.5

Not sure if it's an SDL issue or not. If it is, I can open the bug upstream. Or may be it's a matter of some configuration mismatch?

Change History (4)

comment:1 by lotharsm, 10 months ago

Could you check if this happens on other games/engines as well?

At first glance, this sounds more like an SDL issue to me, but I want to be sure :-)

comment:2 by shmerl, 10 months ago

I tried Indiana Jones and the Fate of Atlantis and it doesn't have such issue.

A few observations when using MangoHUD to monitor things:

  • My display has adaptive sync (variable refresh rate), with 180 Hz max. Adaptive sync is active in the compositor.
  • Indiana Jones and the Fate of Atlantis runs at around 10 fps normally and at around 100 fps when I move the cursor quickly back and forth. Behavior is the same in Wayland and X11 SDL mode.
  • Conquests of the Longbow runs at ~34 fps normally and when moving cursor fast - at 50 fps (both in X11 and Wayland SDL mode). But when in Wayland mode, cursor feels more sluggish.

My guess is, that Indiana Jones having higher framerate when cursor moves mitigates this issue on Wayland, while Conquests of the Longbow being somehow capped at 50 fps hits a problem there, that isn't present in X11 mode.

Last edited 10 months ago by shmerl (previous) (diff)

comment:3 by shmerl, 10 months ago

Oh, and for the reference:

GPU: AMD Sapphire Nitro+ 7900 XTX, using Mesa main.

comment:4 by digitall, 6 months ago

Component: --Unset--Graphics
Note: See TracTickets for help on using tickets.