[SDL] SDL_WaitEventTimeout

Sam Lantinga slouken at devolution.com
Thu Nov 6 14:32:01 PST 2003

Make sure your loop runs:

while( app is running ) {
	SDL_Event event;
	while(SDL_PollEvent(&event)) {
		process the event...
	do other stuff...

This will prevent the event queue from filling up.

See ya,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment

More information about the SDL mailing list