Frame.js
Frame.js copied to clipboard
Compare to requestanimationframe
http://creativejs.com/resources/requestanimationframe/
yeah, Frame needs re-written to use RAF. Here are some references: http://paulirish.com/2011/requestanimationframe-for-smart-animating/ http://www.w3.org/TR/animation-timing/ http://hacks.mozilla.org/2011/08/animating-with-javascript-from-setinterval-to-requestanimationframe/
using requestAnimationFrame recursively (it's standard use) always pegs the computer at 100% CPU usage.
- encase RAF in Frame
- add a framerate limit to config options
- re-write mrdoob's RAF shim