Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation loop should use or reference requestAnimationFrame #4

Open
zachberry opened this issue Mar 6, 2013 · 1 comment
Open

Comments

@zachberry
Copy link

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/

@zachberry
Copy link
Author

Interesting debate on requestAnimationFrame: http://stackoverflow.com/questions/7999680/why-doesnt-jquery-use-requestanimationframe

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant