MCPcopy Create free account
hub / github.com/melonjs/melonJS / _renderFrame

Function _renderFrame

packages/melonjs/src/state/state.ts:153–159  ·  view source on GitHub ↗

* this is only called when using requestAnimFrame stuff * @param time - current timestamp in milliseconds * @ignore

(time: number)

Source from the content-addressed store, hash-verified

151 * @ignore
152 */
153function _renderFrame(time: number): void {
154 emit(TICK, time);
155 // schedule the next frame update
156 if (_animFrameId !== -1) {
157 _animFrameId = globalThis.requestAnimationFrame(_renderFrame);
158 }
159}
160
161/**
162 * stop the SO main loop

Callers

nothing calls this directly

Calls 1

emitFunction · 0.90

Tested by

no test coverage detected