GNOME Lands Nice Optimization For Wayland Gaming

Written by Michael Larabel in GNOME on 23 June 2023 at 06:25 AM EDT. 19 Comments
GNOME
Merged this week into the GNOME Mutter compositor codebase is what should be a beneficial optimization for those enjoying Linux gaming under the GNOME Wayland session.

The change made to Mutter is around no longer blocking in glGetQueryObjecti64v when engaging in direct scanout purposes such as for full-screen games.

This in turn reduces or eliminates stuttering and missed frames, improves frame pacing, stabilizes frame timing, and also provides a better variable rate refresh (VRR / FreeSync) experience with AMD graphics processors.

The MR by Dor Askayo sums it up as:
"This MR assumes that the Wayland transaction mechanism results in zero buffer rendering time before presentation in the direct scanout case, and thus removes the need to query for GPU timestamps using glGetQueryObjecti64v.

See commit messages for more information.

It works quite well from initial testing; fixes dynamic max rendering time estimations, reduces stutter/missed frames, improves frame pacing and stabilizes frame timings. This is also required for smooth VRR experience with AMD GPUs."

This also eliminates nearly 200 lines of code and simplifies the logic for the Wayland direct scanout code path.

Steam on GNOME Wayland session


This improvement was motivated by this two month old bug report by Ernst Sjöstrand around experiencing irregular FPS under the GNOME Wayland session. Ultimately this change should be a very nice improvement for those running full-screen games under the GNOME Wayland session.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week