Frame.js icon indicating copy to clipboard operation
Frame.js copied to clipboard

Compare to requestanimationframe

Open bishopZ opened this issue 13 years ago • 2 comments

http://creativejs.com/resources/requestanimationframe/

bishopZ avatar Apr 26 '12 21:04 bishopZ

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/

bishopZ avatar May 22 '12 14:05 bishopZ

using requestAnimationFrame recursively (it's standard use) always pegs the computer at 100% CPU usage.

  1. encase RAF in Frame
  2. add a framerate limit to config options
  3. re-write mrdoob's RAF shim

bishopZ avatar Jun 16 '12 21:06 bishopZ