You are not logged in.

#1 2026-01-18 20:52:59

raxmax
Member
Registered: 2025-04-09
Posts: 23

[SOLVED] (not) Broken SDL X11 drivers

I discovered that running games through Steam on Wayland with

gamescope %command%

included in the launch options results in the game leaking performance.
Essentially, when you launch the game, the performance is normal.
Over time, fps starts dropping and the game stuttering.
Restarting resets the fps drop.
This happens because SDL defaults to using the X11 video drivers.
To fix this, include

-sdlvideodriver wayland

This wouldn't be an issue(but should still be fixed), if the Wayland driver was the default.
However since the x11 driver is chosen by default, this is very bad.
Where should I report this?
pls fix

Last edited by raxmax (2026-01-19 14:54:31)

Offline

#2 2026-01-18 21:33:32

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,961

Re: [SOLVED] (not) Broken SDL X11 drivers

Over time, fps starts dropping and the game stuttering.

Do you leak memory?
Otherwise, sure it's not just https://bbs.archlinux.org/viewtopic.php?id=302400 and that the workaround doesn't result in software rendering?

Either way: https://github.com/ValveSoftware/gamescope
Your hardware, drivers and pot. Xorg config will be relevant details.

Edit: also https://bbs.archlinux.org/viewtopic.php?id=301357&p=3 (same topic as the other thread, mostly mentioned for search engines)

Last edited by seth (2026-01-18 21:34:41)

Offline

#3 2026-01-19 14:53:26

raxmax
Member
Registered: 2025-04-09
Posts: 23

Re: [SOLVED] (not) Broken SDL X11 drivers

Nevermind, it is just LD_PRELOAD that fixes the stutters.
Thank you seth, I don't understand how you have so much time to deal with things like this.
Your dedication is strongly appreciated.

Offline

#4 2026-01-19 18:45:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,037

Re: [SOLVED] (not) Broken SDL X11 drivers

hmm, I'd have hoped they fixed this by now hmm

Offline

Board footer

Powered by FluxBB