while(!quit){ while(SDL_PollEvents(event) { //check for events } // render stuff here}
this is just to show you what I mean.
my question is, when the second while loop executes, why doesn't it stop the rendering stuff from working or delay it. I thought it should because the second while loop will always be true since you are moving your mouse or pressing buttons but it actually doesn't effect it.
I hope you understand what I mean.
[Edited by - retroworld on July 2, 2010 9:00:44 AM]