mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Listen to the camera through the camera port in the transit layer
Transit lowered the one camera-change threshold every listener shared to 0.05, through a claim ledger. The camera port measures each listener against its own threshold, so Transit now asks for 0.05 on its own port listener, nobody else's trigger changes, and the ledger goes. A new listener measures from the view at the next tick, so the layer looks at the view once more after that tick, and a move made in between is not missed. Disable always removes both subscriptions. The billboards, the occluder and frustum checks and the frame probe still drive Cesium, so the renderer stays on the Cesium list.
This commit is contained in:
1 parent
d513034f3d
commit
b5fa86a20a
11 files changed
+115
-213
No files matched your search
@@ -19,7 +19,7 @@ import { TRANSIT_POLL_MS } from './policy.js';
|
||||
* and height maps, the in-flight requests, the manager handle and the overlay
|
||||
* host all live on the instance this returns, and `destroy()` releases every
|
||||
* shared registration it took (sprite collection, pick owner, render hold,
|
||||
* camera sensitivity).
|
||||
* camera listener).
|
||||
*
|
||||
* @param {{services: object}} options
|
||||
* @returns {object} The data-layer module the manager registers.
|
||||
|
||||
Reference in new issue
Block a user