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
@@ -36,12 +36,12 @@ export function createState({ services }) {
|
||||
state._generation = 0;
|
||||
|
||||
state._cameraChangedAttached = false;
|
||||
/** Removes the camera port listener; null when not listening. */
|
||||
state._cameraChangedOff = null;
|
||||
/** Removes the one-shot look after the camera listener's first tick. */
|
||||
state._cameraFirstTickOff = null;
|
||||
state._cameraDebounceTimer = null;
|
||||
state._altitudeGateOpen = false;
|
||||
/** Camera sensitivity as we found it, so disable() can hand it back. */
|
||||
state._priorPercentageChanged = null;
|
||||
/** The value this layer actually wrote, for an identity-guarded restore. */
|
||||
state._appliedPercentageChanged = null;
|
||||
|
||||
/** @type {(() => void)|null} */
|
||||
state._preRenderRemove = null;
|
||||
|
||||
Reference in new issue
Block a user