[SDL] 50% CPU?

ezdookie ezdookie at gmail.com
Sat Apr 3 12:11:07 PDT 2010


Hi, can someone explain this? Why 50% CPU? Thank you soooo much...


Code:

#include <stdio.h>
#include <SDL.h>

int main(int argc, char* argv[]) {
	bool done = 0;
	
	if (SDL_Init(SDL_INIT_VIDEO) < 0) {
		printf("Error at startup.");
		exit(1);
	}
	
	while (!done) {
		//code
	}
	return 0;
}




[Image: http://img389.imageshack.us/img389/6897/dibujons.jpg ]




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20100403/5ba96019/attachment.htm>


More information about the SDL mailing list