mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Make the cold-start comparison wait for the same data and attribute it
Both pages now get the same deterministic SATCAT, NASA image and wildlife data and advance animation clocks alike; the scenario waits until each display has published and the registries stay unchanged for two seconds, and late-created content is attributed to its registered owner. Known allocation counters are normalised; every slot, count and visibility is still compared. Infrastructure drew on attach before the camera was restored, seeding its level of detail at the incoming engine's default view; it now draws when the view is restored.
This commit is contained in:
1 parent
555906da6b
commit
705b7a5314
8 files changed
+587
-44
No files matched your search
+14
-1
@@ -1,12 +1,25 @@
|
||||
/** The five public drawing registries, with no SDK objects or volatile fields. */
|
||||
export function drawLedger(page) {
|
||||
return page.evaluate(() => {
|
||||
const { engine } = window.__godsEyeView;
|
||||
const { engine, dataManager } = window.__godsEyeView;
|
||||
const owners = [...(dataManager?.layers.keys() ?? [])].sort(
|
||||
(a, b) => b.length - a.length,
|
||||
);
|
||||
const ownerOf = (id) =>
|
||||
owners.find((owner) => id === owner || id.startsWith(owner + '-')) ??
|
||||
(id.startsWith('wind-field-') ? 'wind' : undefined) ??
|
||||
(id.startsWith('bhote-koshi-imagery-') ||
|
||||
id.startsWith('bhote-koshi-flood-')
|
||||
? 'bhote-koshi-2026'
|
||||
: undefined);
|
||||
return ['movers', 'lines', 'ground', 'imagery', 'meshes']
|
||||
.flatMap((family) =>
|
||||
engine[family].list().map((row) => ({
|
||||
id: String(row.id),
|
||||
family,
|
||||
...(ownerOf(String(row.id))
|
||||
? { layer: ownerOf(String(row.id)) }
|
||||
: {}),
|
||||
...(row.kind === undefined ? {} : { kind: row.kind }),
|
||||
...(row.count === undefined ? {} : { count: row.count }),
|
||||
shown: row.shown ?? true,
|
||||
|
||||
Reference in new issue
Block a user