mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Keep the range ring's 80 ms step while a drag wakes its pulses
A user's drag woke the pulses on every frame it drew, and each wake stepped the fronts at once without noting the step, so a drag stepped every frame and some frames twice. A wake now starts resting pulses at once and leaves running ones to their Cyber sonar interval; a subject move that steps notes it too.
This commit is contained in:
1 parent
3f194d0eec
commit
ac0496a785
2 files changed
+16
-4
No files matched your search
@@ -541,6 +541,12 @@ test('a pulse frame draws the step made before it was asked for; a moving camera
|
||||
}
|
||||
assert.equal(steps, 0);
|
||||
assert.equal(drawn(ring).band.fill.image.key, bandKey);
|
||||
// Nor do frames a user's drag draws, each waking the running pulses.
|
||||
for (let i = 0; i < 3; i++) {
|
||||
rendering.wakePulses();
|
||||
loop.draw();
|
||||
}
|
||||
assert.equal(steps, 0, 'a drag keeps the interval');
|
||||
// Crossing below the rim height hides them at once, interval or not.
|
||||
state.viewer.camera.positionCartographic = { height: 1_000 };
|
||||
loop.draw();
|
||||
|
||||
Reference in new issue
Block a user