Compensate speed for framerate