output: allow tearing with atomic mode setting

Additionally, track errors and abandon the tearing allowance when it
cannot be set for two-seconds' worth of consecutive frames.
This commit is contained in:
Christopher Snowhill 2024-07-17 17:10:04 -07:00 committed by Andrew J. Hesford
parent 14d9bbab90
commit d033a2fbf6
4 changed files with 42 additions and 15 deletions

View file

@ -186,10 +186,13 @@ this is for compatibility with Openbox.
mode.
*<core><allowTearing>* [yes|no]
Allow tearing to reduce input lag. Default is no.
This option requires setting the environment variable
WLR_DRM_NO_ATOMIC=1.
*yes* allow tearing if requested by the active window.
Allow tearing, if requested by the active window, to reduce input lag.
Default is no.
Note: Enabling this option with atomic mode setting is experimental. If
you experience undesirable side effects when tearing is allowed,
consider setting the environment variable WLR_DRM_NO_ATOMIC=1 when
launching labwc.
*<core><reuseOutputMode>* [yes|no]
Try to re-use the existing output mode (resolution / refresh rate).