mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Give the Cesium renderer the contract's listener rules and error channel
Frame-phase and draw-set ready listeners now run in subscription order,
skip one removed during delivery, defer one added during it, and hand a
throw to the renderer's error listeners (or reportError) instead of into
Cesium's render loop. The renderer gains on('error' | 'contextLost' |
'contextRestored'); Cesium cannot restore a lost context, so it never sends
contextRestored. Dispose clears every list. renderer.listeners joins the
Cesium checks.
This commit is contained in:
1 parent
2e0af3dc0d
commit
35a73b6fda
6 files changed
+144
-19
No files matched your search
@@ -265,6 +265,7 @@ export async function createCesiumSceneRenderer({
|
||||
capture: ports.capture,
|
||||
whenSettled,
|
||||
resize: () => widget.resize(),
|
||||
on: ports.on,
|
||||
destroy() {
|
||||
destroyed = true;
|
||||
for (const finish of [...watching]) finish('ended');
|
||||
|
||||
Reference in new issue
Block a user