mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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:
1 parent
a043854f27
commit
759308404e
1 file changed
+5
-2
@@ -1329,8 +1329,11 @@ export function portChecks() {
|
|||||||
const s = r.query.project(p);
|
const s = r.query.project(p);
|
||||||
return r.query.drillPick(s.x, s.y).some((x) => x.set === 'conf:live');
|
return r.query.drillPick(s.x, s.y).some((x) => x.set === 'conf:live');
|
||||||
};
|
};
|
||||||
ok(pickAt(along(0.5)), 'drawn delayMs behind wall time');
|
// Measured from the wall time it was drawn at: a first frame may
|
||||||
ok(!pickAt(along(0.7)), 'not at wall time');
|
// 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');
|
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.
|
// A second of frames later it has moved on by the wall time passed.
|
||||||
await drawn(h, r, 60);
|
await drawn(h, r, 60);
|
||||||
|
|||||||
Reference in new issue
Block a user