diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-08-24 10:49:32 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-08-24 10:49:32 +0300 |
| commit | b2c7d3ad401574a3db01ed20acd67ebc8d331cbc (patch) | |
| tree | b67a78b19f0712bcc18c6c518e7ec40b34f49c62 /src/niri.rs | |
| parent | 48329244832c061e2920b2d097b53c13dde72e5a (diff) | |
| download | niri-b2c7d3ad401574a3db01ed20acd67ebc8d331cbc.tar.gz niri-b2c7d3ad401574a3db01ed20acd67ebc8d331cbc.tar.bz2 niri-b2c7d3ad401574a3db01ed20acd67ebc8d331cbc.zip | |
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.
Diffstat (limited to 'src/niri.rs')
| -rw-r--r-- | src/niri.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |
