(currentTimeMillis: number)
| 57 | } |
| 58 | |
| 59 | function 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 | |
| 70 | function ensureCurrentFrameScheduled() { |
| 71 | if (!currentFrameScheduled) { |
nothing calls this directly
no test coverage detected