Little main game loop optimization