Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

test(verify): 60 fps screen floor covers two ladder slots; per-runner rust cache

Richie McIlroyfb61ee964a7c
diff --git a/.github/workflows/verify-recording.yml b/.github/workflows/verify-recording.yml
index 0b61a4618..0a3e0d118 100644
--- a/.github/workflows/verify-recording.yml
+++ b/.github/workflows/verify-recording.yml
@@ -54,7 +54,7 @@ jobs:
- uses: ./.github/actions/setup-rust-cache
with:
target: aarch64-apple-darwin
- prefix-key: v1-rust-verify-recording
+ prefix-key: v1-rust-verify-recording-${{ matrix.runner }}
save-cache: "true"
- uses: ./.github/actions/install-desktop-deps
diff --git a/crates/verify/tests/recording.rs b/crates/verify/tests/recording.rs
index 60c345812..9ecc830d1 100644
--- a/crates/verify/tests/recording.rs
+++ b/crates/verify/tests/recording.rs
@@ -1807,10 +1807,11 @@ fn sync_checks(
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
- // place a variable-rate frame up to one slot early (measured floor
- // -12 ms locally, -10 ms on hosted runners; 30 fps: +11 ms).
+ // 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.025, 0.060)
+ (-0.040, 0.060)
} else {
(-0.010, 0.060)
};