Gameloop with frame skipping