Changing the game loop
For a fixed update schedule loop, with flexible fps.
Bug of instantswap corrected
Correction of fixed time update