mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 17:52:21 +00:00
fix(cctv): turning the layer on no longer flashes every camera before the view pass
The icon set was created shown, and the pass that hides cameras beyond the horizon and thins crowded areas runs only from enable(), after init has waited on the health check. Every frame drawn in that wait showed the whole catalogue. The set now starts hidden; enable() culls, then shows it.
This commit is contained in:
1 parent
b277b55547
commit
9b8f45e62b
2 files changed
+8
No files matched your search
@@ -106,6 +106,9 @@ test('focus de-emphasis fades each icon from its own color', () => {
|
||||
});
|
||||
assert.equal(drawn.focus, FOCUS_FACTOR);
|
||||
assert.equal(draw.set(setId).spec.horizonCull, true);
|
||||
// Hidden until enable() has culled and thinned the cameras: the layer
|
||||
// waits on its health check between drawing them and that pass.
|
||||
assert.equal(draw.set(setId).show, false);
|
||||
} finally {
|
||||
unbind();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user