* @ignore
()
| 75 | * @ignore |
| 76 | */ |
| 77 | function _startRunLoop(): void { |
| 78 | // ensure nothing is running first and in valid state |
| 79 | if (_animFrameId === -1 && _state !== -1) { |
| 80 | // start the main loop |
| 81 | _animFrameId = globalThis.requestAnimationFrame(_renderFrame); |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Resume the game loop after a pause. |
no outgoing calls
no test coverage detected