4 ms·
If you use 'requestAnimationFrame()' instead of a 'setInterval()' for triggering your update method, your animation will perform a lot smoother: https://develo
by nacs 12y ago
If you use 'requestAnimationFrame()' instead of a 'setInterval()' for triggering your update method, your animation will perform a lot smoother:
https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame https://developer.mozilla.org/en-US/docs/Web/API/window/requ...
- anoop-elias 12y agoHave a look at this one, highly recommended, https://github.com/hughsk/ticker https://github.com/hughsk/ticker