mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 16:52:20 +00:00
Release hidden CCTV geometry and excuse level-of-detail path counts
CCTV kept the coverage and projection geometry of every camera the opening view passed on its way to the restored one; after each visibility update it now releases the coverage of cameras out of view and the planes of inactive cameras, keeping decoded media for reselection. The cold-start comparison accepts a field entry in the ledger allowlist that excuses one field of one set with a reason, and uses it for the infrastructure footprint counts: that level of detail keeps features chosen on the way to a view so they do not flicker while panning, which a cold start cannot reproduce. Presence checks ignore field entries. The fixtures give recent imagery a matching scene and date and traffic its deterministic starts, and traffic counts as drawn without every loaded vehicle visible.
This commit is contained in:
1 parent
ab41c765cc
commit
34b4fdce57
10 files changed
+312
-44
No files matched your search
@@ -406,5 +406,47 @@ test('readiness waits for fixture publications, LOD and the locator reveal', ()
|
||||
assert.equal(ready('transit'), false);
|
||||
bus.set(0, { show: true });
|
||||
assert.equal(ready('transit'), true);
|
||||
entry('traffic');
|
||||
assert.equal(ready('traffic'), false);
|
||||
const cars = engine.movers.createSet({
|
||||
id: 'traffic-fill',
|
||||
kind: 'point',
|
||||
capacity: 10,
|
||||
point: { sizePx: 4 },
|
||||
});
|
||||
cars.setCount(9);
|
||||
assert.equal(ready('traffic'), true, 'fading vehicles need not all draw');
|
||||
for (let i = 0; i < 9; i++) cars.set(i, { show: false });
|
||||
assert.equal(ready('traffic'), false, 'hidden traffic is not ready');
|
||||
for (let i = 0; i < 9; i++) cars.set(i, { show: true });
|
||||
dataManager.layers.get('traffic').module.getStats = () => ({
|
||||
count: 10,
|
||||
loading: true,
|
||||
});
|
||||
assert.equal(ready('traffic'), false, 'population admission must finish');
|
||||
engine.destroy();
|
||||
});
|
||||
|
||||
test('a field entry excuses only that field of that set and never a missing set', () => {
|
||||
const a = snapshot(),
|
||||
b = snapshot();
|
||||
b.ledger[0].count = 2;
|
||||
const allow = [
|
||||
{ id: 'radio-selected', family: 'movers', field: 'count', reason: 'path' },
|
||||
];
|
||||
const excused = compareColdStart(a, b, { ...options, allow });
|
||||
assert.deepEqual(
|
||||
excused.differences.filter((row) => row.family === 'movers'),
|
||||
[],
|
||||
);
|
||||
assert.ok(excused.skipped.some((row) => row.reason === 'path'));
|
||||
// The radio marker is declared session state; compare it as plain content.
|
||||
b.ledger = [];
|
||||
assert.ok(
|
||||
compareColdStart(a, b, {
|
||||
...options,
|
||||
allow,
|
||||
sessionState: false,
|
||||
}).differences.some((row) => row.field === 'present'),
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user