Category : animation

I have the following functions function render() { init = timeStep(init) if (steps <= yQuotient) { requestAnimationFrame(render) } } export function fire() { setup(); render(); } I then call fire() whenever I need to start/restart the application. My question is whether this will result in multiple requestAnimationLoop()‘s active simulatenously as they build up like eventListeners ..

Read more