unify / unify

Unify Project
http://www.unifyjs.com
Other
152 stars 16 forks source link

updated requestAnimationFrame emulation to stay closer to 60fps #121

Closed dominikg closed 12 years ago

dominikg commented 12 years ago

adapted from ideas by Paul Irish and Erik Möller: http://paulirish.com/2011/requestanimationframe-for-smart-animating/

  1. take execution time of callbacks into acount by lowering timeout value for next loop iteration
  2. use for loop to scan for vendor prefixed implementations