Loop delay problem fixed

SDL_PollEVent is CPU-intensive, use SDL_WaitEventTimeout instead