From a7186a0441fe866784a601c6192850267802dca5 Mon Sep 17 00:00:00 2001 From: Gwen Date: Wed, 4 Jun 2025 01:56:21 +1000 Subject: Add debug option to skip cursor-only updates while VRR is active (#1616) * Add debug option to skip cursor-only updates while VRR is active * Update niri-config/src/lib.rs Co-authored-by: Ivan Molodetskikh * Update src/backend/tty.rs Co-authored-by: Ivan Molodetskikh * Update wiki/Configuration:-Debug-Options.md Co-authored-by: Ivan Molodetskikh * Update Configuration:-Debug-Options.md * Update tty.rs * Update lib.rs * Update Configuration:-Debug-Options.md --------- Co-authored-by: Ivan Molodetskikh --- src/backend/tty.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/backend/tty.rs b/src/backend/tty.rs index 363526d4..3b5cd31c 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -1422,6 +1422,12 @@ impl Tty { if debug.disable_cursor_plane { flags.remove(FrameFlags::ALLOW_CURSOR_PLANE_SCANOUT); } + if debug.skip_cursor_only_updates_during_vrr { + let output_state = niri.output_state.get(output).unwrap(); + if output_state.frame_clock.vrr() { + flags.insert(FrameFlags::SKIP_CURSOR_ONLY_UPDATES); + } + } flags }; -- cgit