mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 00:02:25 +00:00
perf(detection): reuse the last sweep when the view and contacts are unchanged
Every detection paint projected, faded and bracketed every contact, even when nothing it reads had changed since the paint before. Live Flights moves the fleet every 80 ms, so at 60 fps about seven paints in ten rebuilt the same paths. Each paint now compares the view and every contact (same objects, same coordinates, same value in each field the sweep reads) with what the last sweep was built from, and on a match strokes the kept paths and places callouts from the kept candidates. Nothing has to announce a change. Solve paints, the Cyber sonar sweep, Global Context echoes and depth-tested contacts are always swept. Also in the sweep: the camera distance without Cesium's argument checks, the identity hash worked out once per identity, and each layer's identity sets looked up once per run of objects. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
1 parent
140f7ebd21
commit
1d81955f1d
6 files changed
+797
-11
No files matched your search
@@ -2690,6 +2690,7 @@
|
||||
"src/data/detectionDraw.js",
|
||||
"src/data/detectionPolicy.js",
|
||||
"src/data/detectionOcclusion.js",
|
||||
"src/data/detectionPaintCache.js",
|
||||
"src/data/detectionPresentation.js",
|
||||
"src/data/detectionRenderDemand.js",
|
||||
"src/data/sceneOcclusionProbe.js",
|
||||
@@ -4372,6 +4373,7 @@
|
||||
"src/data/detectionRenderDemand.js",
|
||||
"src/data/detectionPresentation.js",
|
||||
"src/data/detectionOcclusion.js",
|
||||
"src/data/detectionPaintCache.js",
|
||||
"src/data/sceneOcclusionProbe.js",
|
||||
"src/data/modelEligibility.js",
|
||||
"src/app/layers/recentImagery.js",
|
||||
|
||||
Reference in new issue
Block a user