From b2c7d3ad401574a3db01ed20acd67ebc8d331cbc Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 24 Aug 2024 10:49:32 +0300 Subject: Rework PW screencast frame timing - Remove the 0.5 ms hack. - Add redraw scheduling to fix stuck frame if the last redrawn frame happened too soon. --- src/niri.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/niri.rs') diff --git a/src/niri.rs b/src/niri.rs index a507b09a..852e93f6 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -3664,7 +3664,7 @@ impl Niri { } } - if cast.should_skip_frame(target_presentation_time) { + if cast.check_time_and_schedule(&self.event_loop, output, target_presentation_time) { continue; } @@ -3726,7 +3726,7 @@ impl Niri { } } - if cast.should_skip_frame(target_presentation_time) { + if cast.check_time_and_schedule(&self.event_loop, output, target_presentation_time) { continue; } @@ -3805,7 +3805,7 @@ impl Niri { } } - if cast.should_skip_frame(target_presentation_time) { + if cast.check_time_and_schedule(&self.event_loop, output, target_presentation_time) { continue; } -- cgit