You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The loop code uses setInterval which will work in every browser, but we should at least mention requestAnimationFrame which is more efficient and built for animations.
My experience with requestAnimationFrame has just been limited to a tiny amount of three.js work where I didn't come across these problems - regardless, it's worth looking at and perhaps mentioning to some degree if requestAnimationFrame is added into the tutorial.
The loop code uses setInterval which will work in every browser, but we should at least mention requestAnimationFrame which is more efficient and built for animations.
More info: http://paulirish.com/2011/requestanimationframe-for-smart-animating/
The text was updated successfully, but these errors were encountered: