mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
globe.getHeight is a ray cast against the drawn tile's mesh and scene.sampleHeight a GPU depth render; several layers asked for them uncached and unbudgeted. The cache written for Transit moves to src/services/terrainSurface.js and is handed to every layer through the ground service, so layers share one cache and one read budget. - Rail reads each train on a ~4 m grid instead of every frame. - Local data layers read terrain floors through it and stop depth samples at 8 ms a frame. - Bike Share draws stations at once and finds their heights afterwards in 4 ms steps. Co-Authored-By: Claude Fable 5.2 <[email protected]>
344 B
344 B
- Read terrain heights through one shared, cached and budgeted reader
(
src/services/terrainSurface.js) in Transit, Rail, Bike Share and the local data layers. Opening Data Centers no longer blocks the page for over two seconds, opening Bike Share for most of a second, and Rail asks the terrain about a twentieth as often (mazy1998).