View Single Post
  #2 (permalink)  
Old June 4th, 2013, 09:42 PM
pascalrettig pascalrettig is offline
Wrox Author
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default

Chrome switched to a high resolution timer a while back - and this causes problems the first time around (See: http://updates.html5rocks.com/2012/0...cond-precision ) - the easiest solution is to use new Date().getTime() instead of the now parameter passed into the requestAnimationFrame wrapper.
The Following User Says Thank You to pascalrettig For This Useful Post:
sauerkraut (June 5th, 2013)