Update interval should be done in the game loop