mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-22 03:02:20 +00:00
refactor(cctv): isolate native rendering resources
Keep shared CCTV logic independent of Cesium, release the original renderer's resources, and guard retired initialization/media work. Preserve native marker, plane, volume, calibration and input behavior. Record keyless dev/preview validation and retain unresolved shell idle/terrain and photoreal acceptance gaps. Routine QA builds use empty Google and Cesium credentials and block paid maps before navigation.
This commit is contained in:
1 parent
f72bf6a774
commit
93c71ffc86
32 files changed
+1536
-740
No files matched your search
@@ -25,13 +25,13 @@ export function createHover({ state: layerState, services, parts, source }) {
|
||||
!position
|
||||
)
|
||||
return;
|
||||
if (!layerState._viewer || layerState._viewer.isDestroyed()) return;
|
||||
if (!parts.renderer?.ready) return;
|
||||
const now = Date.now();
|
||||
if (now - layerState._hoverLastPickAt < HOVER_PICK_THROTTLE_MS) return;
|
||||
layerState._hoverLastPickAt = now;
|
||||
let picked = null;
|
||||
try {
|
||||
picked = layerState._viewer.scene.pick(position);
|
||||
picked = parts.renderer.pick(position);
|
||||
} catch {
|
||||
picked = null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user