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
@@ -1385,8 +1385,17 @@ test "compose_scene hands the host a scene only when something changed" {
|
||||
}
|
||||
None => abort("the first scene must be drawn")
|
||||
}
|
||||
// Nothing happened: nothing to draw.
|
||||
assert_true(comp.compose_scene() is None)
|
||||
// Nothing happens: soon there is nothing to draw. (A startup notice may go away or a clock turn
|
||||
// meanwhile; on a busy machine that takes a few scenes.)
|
||||
let settles = fn() {
|
||||
for _ in 0..<20 {
|
||||
if comp.compose_scene() is None {
|
||||
return true
|
||||
}
|
||||
}
|
||||
false
|
||||
}
|
||||
assert_true(settles())
|
||||
assert_false(comp.frame_changed)
|
||||
// A new window changes the scene, then it settles again.
|
||||
ignore(open_and_configure_client(comp, socket_path, "A", "a"))
|
||||
@@ -1394,7 +1403,7 @@ test "compose_scene hands the host a scene only when something changed" {
|
||||
Some(sg) => assert_eq(sg.windows.length(), 1)
|
||||
None => abort("a new window must change the scene")
|
||||
}
|
||||
assert_true(comp.compose_scene() is None)
|
||||
assert_true(settles())
|
||||
// The switcher overlay is part of the scene too.
|
||||
comp.handle_input(@nested.InputEvent::Key(56U, true), 1U)
|
||||
ignore(open_and_configure_client(comp, socket_path, "B", "b"))
|
||||
|
||||
Reference in new issue
Block a user