Pulled game loop timing into a game engine