[SDL] SDL_PollEvent VS SDL_WaitEvent

Gabriel mystml at adinet.com.uy
Thu Jan 27 19:42:24 PST 2005

> This quesiton may sound silly : 
> what is the difference between SDL_PollEvent and SDL_WaitEvent? 
> When do I use SDL_PollEvent and when do I use SDL_WaitEvent? 
> Is there an efficiency issue here? 

SDL_PollEvent — Polls for currently pending events.
SDL_WaitEvent — Waits indefinitely for the next available event.

More information about the SDL mailing list