Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
test(verify): screen latency ceiling at four refreshes
Richie McIlroyf77e5b61ae1f
diff --git a/crates/verify/expectations.toml b/crates/verify/expectations.tomlindex f682e2fc7..2c91bfbf8 100644--- a/crates/verify/expectations.toml+++ b/crates/verify/expectations.toml@@ -224,7 +224,7 @@ case = "recording/instant/gated"class = "sync"platforms = ["macos"]flaky = true-reason = "NEW: the app's Instant start (start gate armed by the start cue): the screen-to-audio offset varies run to run, from -19 to +16 ms on runners (3 of 10 outside the -10..+60 ms window) to +2 to +385 ms on a developer Mac (7 of 8 outside), with 'Start gate admitted first audio frame at the arm point' followed by overlap trims of up to 124 ms"+reason = "NEW: the app's Instant start (start gate armed by the start cue): the screen-to-audio offset varies run to run: runners -22 to +16 ms (6 of 20 runs below the -10 ms floor), developer Mac +2 to +385 ms (3 of 13 above +75 ms); logs show 'Start gate admitted first audio frame at the arm point' followed by overlap trims of up to 124 ms"link = ""[[xfail]]diff --git a/crates/verify/tests/recording.rs b/crates/verify/tests/recording.rsindex 9ecc830d1..115810004 100644--- a/crates/verify/tests/recording.rs+++ b/crates/verify/tests/recording.rs@@ -1806,14 +1806,15 @@ fn sync_checks(const CAMERA_SUSTAINED_FRAMES: usize = 3;const CAMERA_VS_MIC: f64 = 1.0 / CAMERA_FPS as f64;// Screen: the recorded frame may trail its hand-off by the display- // latency (up to ~3 refreshes) and, at 60 fps, the cadence ladder may+ // latency (up to 4 refreshes plus half a refresh of phase: the+ // paravirtual runner display measured up to +54 ms) and, at 60 fps, the cadence ladder may// place a variable-rate frame (20 fps content) up to two 16.7 ms slots// early (measured floor: -29 ms on a developer Mac, -17 ms on hosted// runners; at 30 fps capture the floor is +5 ms).let screen_latency: (f64, f64) = if max_fps > 30 {- (-0.040, 0.060)+ (-0.040, 0.075)} else {- (-0.010, 0.060)+ (-0.010, 0.075)};const SYSTEM_VS_MIC: f64 = 0.030;// System audio truth adds the output device's latency (measured -4 to