hakimel/Sphere — pull request #1 by jatinmistry13 (2012-11-16 17:10:13+00:00)
Title: Review proposed changes

I have made some changes to Sphere.js. Please review.

Made changes to original Sphere.js for Performance enhancements.
Instead of using setInterval() method, changed to requestAnimationFrame().
requestAnimationFrame is simply a way to tell the browser "before drawing
the next frame on the screen, execute this logic/animation processing".
The browser is in charge of choosing the best moment to execute the code,
which results in a more efficient use of resources.
[References]
1)http://www.html5rocks.com/en/tutorials/canvas/performance/
2)http://paulirish.com/2011/requestanimationframe-for-smart-animating/
3)http://hacks.mozilla.org/2011/08/animating-with-javascript-from-setinterval-to-requestanimationframe/