* this is only called when using requestAnimFrame stuff * @param time - current timestamp in milliseconds * @ignore
(time: number)
| 151 | * @ignore |
| 152 | */ |
| 153 | function _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 |