mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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:
1 parent
e3cfdcf44e
commit
72cfea35c4
2 files changed
+32
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user