mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 16:52:20 +00:00
perf(globe): lazy hidden tiles by tile extent; floor resample interval
sampleHeight collects hidden tiles only after the shown ones miss, with no per-node allocation, and picks the finest by tile extent (Navara exposes no geometric error), not per-mesh radius. The ground floor resamples on a move only after 100 ms, and reports its own ground and margin (engine.groundFloor, Navara-only diagnostics).
This commit is contained in:
1 parent
6dad3894bd
commit
da6141be4b
6 files changed
+152
-49
No files matched your search
@@ -369,3 +369,10 @@ test('the floor does not fight flights or a lookAt target', () => {
|
||||
near(heightOf(engine), 130, 1e-6, 'lifted once released');
|
||||
engine.destroy();
|
||||
});
|
||||
|
||||
test('the ground floor reports its own ground and margin (diagnostics, not contract)', () => {
|
||||
const { engine } = setup();
|
||||
assert.equal(typeof engine.groundFloor.ground, 'function');
|
||||
assert.equal(engine.groundFloor.margin, 30);
|
||||
assert.equal(engine.groundFloor.ground(), undefined, 'nothing sampled yet');
|
||||
});
|
||||
Reference in new issue
Block a user