Fix CI: recordings keep to 60 fps, the battery has room for its time left
- Recorder: a 12 ms gap let through 83 frames a second. Frames now come due every 60th of a second, with room for a 60 Hz screen's jitter. - Battery: the handset change shrank it to 76 px everywhere, too narrow for the time left. It is 104 px again, and 76 only on a compact panel. - Tests: recording is timed from its first frame, the failed launch doesn't depend on the apps installed, and the scene test waits for notices and clocks to settle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4e6a8005dd
commit
d1d1bb398c
6 files changed
+63
-14
No files matched your search
@@ -224,6 +224,14 @@ test "super+alt+r records the screen to a video with ffmpeg; the REC pill stops
|
||||
chord(comp, [125U, 56U], 64U | 8U, 19U, 1U)
|
||||
assert_true(comp.recording())
|
||||
assert_eq(comp.recording_rect(), Some(@scene.Rect::new(0, 0, 1280, 720)))
|
||||
// ffmpeg starts first: until it listens no frame is taken.
|
||||
let t_start = @sys.monotonic_ms()
|
||||
while comp.recorded_frames() == 0 && @sys.monotonic_ms() - t_start < 9000UL {
|
||||
comp.step()
|
||||
ignore(comp.compose_frame())
|
||||
@sys.sleep_ms(5)
|
||||
}
|
||||
assert_true(comp.recorded_frames() > 0)
|
||||
// Run the loop for a little over a second, the pointer moving all the while: each step a
|
||||
// changed picture, so frames are taken as often as the recorder allows.
|
||||
let t0 = @sys.monotonic_ms()
|
||||
|
||||
Reference in new issue
Block a user