Update fixed update loop to use requestAnimationFrame.