Wayland latency tuning

From Looking Glass
Revision as of 20:04, 30 August 2021 by Quantum (talk | contribs) (Created page with "On Wayland, frame latency can be reduced by making the compositor render as late as possible before a vblank. This allows the compositor to show the latest frame available, ju...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

On Wayland, frame latency can be reduced by making the compositor render as late as possible before a vblank. This allows the compositor to show the latest frame available, just in time for the screen refresh. This guide describes how to configure this for certain compositors.

Looking Glass can also be made to render right before the compositor renders, further reducing latency. This is what the win:jitRender setting does on Wayland. The timing of this is also controlled by the compositor, and thus the configuration is compositor-specific.

Sway

On Sway, this is controlled by the max_render_time setting. The max_render_time setting on the output controls how many millisecond the compositor renders before the vblank. Setting max_render_time on the window controls how many milliseconds the compositor tells windows to render.