Fixed a bug in the new game loop that causes overcompensation of skipped
ticks.