Use time passed in by requestAnimationFrame