I have a loop that draws nothing and doesn’t even call my own functions.
The loop is a for-loop that goes for 600 times and calls SDL_Flip(); This
is my screen surface init:
SDL_Surface *screen = SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE |
SDL_DOUBLEBUF | SDL_FULLSCREEN);
the screen starts flashing from white to black and black to white after
about 400 times or something. This wouldn’t bother otherwise because
you’re suppose to draw into the screen, right? But when the flashing
starts at the background, the first white screen shows over my blittings
and the screen quickly flashes white and then goes on normally. This
isn’t a problem that I couldn’t live with, but I was wondering that maybe
drawing screen from black to white and back might slow the program?
Anyway, what is this?
Btw, thank you for everyone for this list, this really is something that I
should be with every library because I wouldn’t be in this phase of my
game without this.