Instead of updating the game with a constant timer tick, a while loop should be used with the option of frame skipping.