draw.motion.live measures from the wall time it drew at

The icon moves past its own width in about a quarter of a second, and a
new renderer's first frame can come that late: the check now reads where
it should be from the wall time after that frame, its delay and its
'not at wall time' unchanged.
This commit is contained in:
Sameh Khamis committed 2026-11-11 17:33:52 -08:00
1 parent a043854f27
commit 759308404e
1 file changed
+5 -2
+5 -2
View File
@@ -1329,8 +1329,11 @@ export function portChecks() {
const s = r.query.project(p);
return r.query.drillPick(s.x, s.y).some((x) => x.set === 'conf:live');
};
ok(pickAt(along(0.5)), 'drawn delayMs behind wall time');
ok(!pickAt(along(0.7)), 'not at wall time');
// Measured from the wall time it was drawn at: a first frame may
// come a while after the set was made.
const late = (h.wallTime(r) - w) / 10000;
ok(pickAt(along(0.5 + late)), 'drawn delayMs behind wall time');
ok(!pickAt(along(0.7 + late)), 'not at wall time');
ok(!pickAt(from), 'not held at the start by the scene clock');
// A second of frames later it has moved on by the wall time passed.
await drawn(h, r, 60);