fix(render): Recent Imagery's swipe slots wait for each other's tiles without redrawing

The two slots share one small request budget through one admit hook.
When one slot held it, the other's deferred tiles asked the Cesium globe
for a redraw every 250 ms, about four extra frames a second while tiles
loaded; before, they waited for the holder's tile, whose settling draws
the frame that asks again. Layers given the same admit now share their
waits: with one of their tiles in flight, nothing more is asked for. A
layer deferring while an unrelated layer loads still retries after 250 ms.
This commit is contained in:
Sameh Khamis committed 2026-11-14 08:03:05 -08:00
1 parent ecf8b31756
commit 96ef7f509e
3 files changed
+39 -8

No files matched your search

+2 -1
View File
@@ -111,7 +111,8 @@ export interface ImagerySpec {
/**
* `imageHooks`: decides each tile request on the main thread: call
* `issue()` to fetch it, or return `undefined` to defer it and be asked
* again on a later frame. `fetchTile`'s `defer` does the same anywhere.
* again on a later frame. Layers given the same function share its waits:
* while one of their tiles is in flight, its settling is that frame. `fetchTile`'s `defer` does the same anywhere.
* With both, `admit` decides first and an issued request goes through
* `fetchTile`; each defers on its own.
*/