3 ms·
It could definitely be in an infinite loop if it's running a webgl context. Many (including myself) have tied into window.requestAnimationFrame(...) recursivel
by softfalcon 6y ago
It could definitely be in an infinite loop if it's running a webgl context.
Many (including myself) have tied into window.requestAnimationFrame(...) recursively forever.
This lets the page breathe, but always call back into your main game loop to update the webgl render context/canvas.