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

Test out requestAnimationFrame performance #1

Closed
chrisjacob opened this issue Apr 12, 2012 · 1 comment
Closed

Test out requestAnimationFrame performance #1

chrisjacob opened this issue Apr 12, 2012 · 1 comment

Comments

@chrisjacob
Copy link

Hi Guys,

This might be a hair brained idea... and just a knee jerk issue post... But I wonder how requestAnimationFrame compares to setTimeout with the task you are performing?

Disclaimer: I don't know too much on the subject.

Alex MacCaw
@maccman
"I'm deferring any async rendering needed to requestAnimationFrame - it's so much faster. https://developer.mozilla.org/en/DOM/window.requestAnimationFrame"
Source: https://twitter.com/#!/maccman/status/190244937793671168

Also the pollyfill: "requestAnimationFrame for smart animating"
http://paulirish.com/2011/requestanimationframe-for-smart-animating/

@caseyohara
Copy link
Contributor

@chrisjacob Thanks for the tip. We'll run some tests and see which performs better. Since most retina devices will be running a WebKit browser, we can probably get away with using an experimental feature.

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

No branches or pull requests

2 participants