MCPcopy
hub / github.com/visgl/deck.gl / onAnimationFrame

Method onAnimationFrame

test/modules/extensions/utils.ts:77–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 async _update() {
76 return new Promise(resolve => {
77 const onAnimationFrame = () => {
78 if (this.layerManager.needsUpdate()) {
79 this.layerManager.updateLayers();
80
81 this.render();
82 resolve();
83 return;
84 }
85 setTimeout(onAnimationFrame, 50);
86 };
87 onAnimationFrame();
88 });
89 }

Callers

nothing calls this directly

Calls 3

renderMethod · 0.95
needsUpdateMethod · 0.45
updateLayersMethod · 0.45

Tested by

no test coverage detected