Wayland Protocols 1.30 Introduces New Protocol To Allow Screen Tearing

Written by Michael Larabel in Wayland on 21 November 2022 at 12:20 PM EST. 123 Comments
WAYLAND
In the early days of Wayland one of the main philosophical driving points for this alternative to the X.Org Server was that "every frame is perfect" and would forego screen tearing among other rendering impurities. Introduced now with Wayland Protocols 1.30 though is a new staging protocol to allow screen tearing.

Wayland Protocols 1.30 was released today where the sole change is a new staging protocol to allow optional tearing. The new tearing control protocol allows clients to let the compositors know that their surface's contents can "tear" if necessary -- showing a mix of old/new surface contents.

The intent with this tearing control protocol is for latency-sensitive software like games and graphics drawing tablet programs to tear if needed in order to reduce the input to screen latency.


Clients can use the tearing-control protocol to indicate they are fine with tearing via async page-flipping. The tearing_control_v1 protocol has been worked on since last year by KDE developer Xaver Hugl.

The new tearing_control_v1 specification sums itself up as:
For some use cases like games or drawing tablets it can make sense to reduce latency by accepting tearing with the use of asynchronous page flips. This global is a factory interface, allowing clients to inform which type of presentation the content of their surfaces is suitable for.

Graphics APIs like EGL or Vulkan, that manage the buffer queue and commits of a wl_surface themselves, are likely to be using this extension internally. If a client is using such an API for a wl_surface, it should not directly use this extension on that surface, to avoid raising a tearing_control_exists protocol error.
The goal, of course, is to achieve no screen tearing and by default this protocol doesn't change the client behavior or intended Wayland compositor behavior around screen tearing.
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