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:
German Khokhlov committed 2026-11-10 22:31:13 +04:00
1 parent ab41c765cc
commit 34b4fdce57
10 files changed
+312 -44

No files matched your search

+25 -11
View File
@@ -108,7 +108,7 @@ export function coldStartReady(layers, cold = false) {
stats.count > 0 &&
movers.some(
(row) =>
row.id === 'traffic-fill' && row.count === stats.count && row.shown,
row.id === 'traffic-fill' && row.count > 0 && row.shown,
)
);
if (['flights', 'military', 'transit'].includes(id))
@@ -317,16 +317,30 @@ export function compareColdStart(
const next = cold.ledger.find(
(other) => other.family === row.family && other.id === row.id,
);
if (next)
add(
layerOf(row.family, row.id),
row.family,
row.id,
compareProbe(
{ kind: row.kind, count: row.count },
{ kind: next.kind, count: next.count },
),
);
if (next) {
// A field entry excuses one field of one set, with its reason.
const rows = compareProbe(
{ kind: row.kind, count: row.count },
{ kind: next.kind, count: next.count },
).filter((difference) => {
const exception = allow.find(
(entry) =>
entry.field === difference.field &&
entry.id === row.id &&
(!entry.family || entry.family === row.family),
);
if (exception)
skipped.push({
layer: layerOf(row.family, row.id),
family: row.family,
id: row.id,
...difference,
reason: exception.reason,
});
return !exception;
});
add(layerOf(row.family, row.id), row.family, row.id, rows);
}
}
for (const layer of new Set([
...Object.keys(switched.layers),