mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
merge main f13c60c into feat/voice-outlines
reconcile voice outlines with main f13c60c, retaining German/Japanese,
Operator HUD retirement and Context/Radio cleanup, named-building
containment, courtyard-hole, non-Latin identity, attribution, cancellation
and antimeridian repairs
keep outline callouts above the open voice preview when an above-panel
slot fits without colliding with another callout,
and clip the compact dock location label on narrow screens
This commit is contained in:
commit
578ebdc030
449 files changed
+30400
-3429
No files matched your search
@@ -7,3 +7,46 @@ export function phaseTiming(phase, start, detail = {}, scope = 'roads') {
|
||||
detail,
|
||||
});
|
||||
}
|
||||
|
||||
/** Bounded development evidence for one physical outline installation. */
|
||||
export function createWorkTrace() {
|
||||
if (!import.meta.env?.DEV) return null;
|
||||
try {
|
||||
return {
|
||||
timeOrigin: performance.timeOrigin,
|
||||
slices: [],
|
||||
dropped: 0,
|
||||
probes: 0,
|
||||
samplerStart: null,
|
||||
samplerStatus: null,
|
||||
rendererStatus: null,
|
||||
status: 'pending',
|
||||
completedAt: null,
|
||||
};
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** Never let optional diagnostic recording change an installation outcome. */
|
||||
export function recordWorkSlice(trace, phase, start, end, detail) {
|
||||
if (!trace) return;
|
||||
try {
|
||||
if (trace.slices.length >= 16) {
|
||||
trace.dropped += 1;
|
||||
return;
|
||||
}
|
||||
trace.slices.push({
|
||||
phase,
|
||||
start,
|
||||
end: end ?? performance.now(),
|
||||
...(detail === undefined ? {} : { detail }),
|
||||
});
|
||||
} catch {
|
||||
try {
|
||||
trace.dropped += 1;
|
||||
} catch {
|
||||
// Missing or incomplete evidence fails the measurement, not the product.
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user