A live motion clock's new delay restyles nothing on Cesium

Aircraft layers move their display delay a little every frame. Every frame
already reads the clock from the set, so a delay-only change now just asks
for a frame instead of restyling every row.
This commit is contained in:
Sameh Khamis committed 2026-11-14 01:06:21 -08:00
1 parent e3cfdcf44e
commit 72cfea35c4
2 files changed
+32

No files matched your search

+12
View File
@@ -588,6 +588,18 @@ export function createCesiumDraw({
requestRender();
},
setOptions(options) {
// A live clock's new delay only: every frame reads the clock from
// the spec, so nothing is rebuilt or restyled (a layer moves its
// display delay a little every frame).
if (
Object.keys(options).every((key) => key === 'motionClock') &&
options.motionClock?.kind === 'live' &&
spec.motionClock?.kind === 'live'
) {
spec.motionClock = options.motionClock;
requestRender();
return;
}
// Refused, changing nothing, where icons on the GPU cannot take it.
if (record.gpu) gpu.check([], { ...spec, ...options });
const culled = spec.horizonCull;