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

Function doCurrentFrame

packages/core/animation-frame/index.ts:47–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47function doCurrentFrame() {
48 // if we're not getting accurate frame times
49 // set last frame time as the current time
50 if (!fpsCallback || !fpsCallback.running) {
51 lastFrameTime = getTimeInFrameBase();
52 }
53 currentFrameScheduled = false;
54 const thisFrameCbs = currentFrameAnimationCallbacks;
55 currentFrameAnimationCallbacks = {};
56 callAnimationCallbacks(thisFrameCbs, lastFrameTime);
57}
58
59function doFrame(currentTimeMillis: number) {
60 lastFrameTime = currentTimeMillis;

Callers

nothing calls this directly

Calls 2

getTimeInFrameBaseFunction · 0.90
callAnimationCallbacksFunction · 0.85

Tested by

no test coverage detected