MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / doFrame

Function doFrame

packages/core/animation-frame/index.ts:59–68  ·  view source on GitHub ↗
(currentTimeMillis: number)

Source from the content-addressed store, hash-verified

57}
58
59function doFrame(currentTimeMillis: number) {
60 lastFrameTime = currentTimeMillis;
61 shouldStop = true;
62 const thisFrameCbs = nextFrameAnimationCallbacks;
63 nextFrameAnimationCallbacks = {};
64 callAnimationCallbacks(thisFrameCbs, lastFrameTime);
65 if (shouldStop) {
66 fpsCallback.stop(); // TODO: check performance without stopping to allow consistent frame times
67 }
68}
69
70function ensureCurrentFrameScheduled() {
71 if (!currentFrameScheduled) {

Callers

nothing calls this directly

Calls 2

callAnimationCallbacksFunction · 0.85
stopMethod · 0.65

Tested by

no test coverage detected