ublue-os / bazzite

Bazzite is a cloud native image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices - including your favorite handheld.
https://bazzite.gg
Apache License 2.0
4.09k stars 251 forks source link

fix(gamescope): improve SteamUI refresh halving #1811

Closed antheas closed 3 weeks ago

antheas commented 3 weeks ago

Previous patch halved the blanking interval of SteamUI without updating the presentation timings. This might have caused it to feel choppier than it should. Therefore, much like VRR, add a staging variable for the requested framerate and only apply it when we are not in SteamUI.

This way, the wayland presentation callbacks and timers have the correct frame pacing.

Then, add --disable-steamui-framelimit to disable the optimization. Even with that flag, VRR will remain disabled in steamui.