[SDL] Blitting speeds

John Garrison jeg at visi.net
Fri Aug 27 02:27:24 PDT 1999


Sam Lantinga wrote:
> 
> >    /* Initialize 640x480x16bpp graphics mode */
> >    screen = SDL_SetVideoMode(640, 480, 16, SDL_HWPALETTE|SDL_DOUBLEBUF);
> 
> That line should be:
> 
>      screen = SDL_SetVideoMode(640, 480, 16, SDL_HWSURFACE|SDL_DOUBLEBUF);
> 
> You should also use depth 0, and convert your artwork.
> 
I am still getting 27fps, should I just consider that a hardware limit? 
I hope not that would mean my lib will never be useful :(



More information about the SDL mailing list