[SDL] Quickly drawing an Array of pixels on the screen
list at akfoerster.de
list at akfoerster.de
Wed Jan 23 08:10:56 PST 2008
Am Wednesday, dem 23. Jan 2008 schrieb Taras Keiditsch:
> SDL_UpdateRect(screen, 0, 0, 0, 0);
> }
>
> It gets called many 1000 times, but its terribly slow..How can I make it faster? I thought about somehow creating a SDL_Surface in RAM and then copying the pixels in there without locking it and then blit that on the screen. Is that possible? Thanks for your help.
Call SDL_UpdateRect only once, when all the drawing is done;
not for each and every pixel.
--
AKFoerster
More information about the SDL
mailing list