[SDL] Speeding up my render.. SOLVED

Clemens Kirchgatterer clemens at 1541.org
Thu Jun 16 13:25:59 PDT 2005

Matt Pruett <entelin at logicaldreams.net> wrote:

> Ok looks like they were not at the screen format, so I changed the
> masks so it was and this gave me a 200% boost. I am now clipping along
> at 200fps, and adding the delay 2ms in there dropped my cpu down to
> 2%, so this is a good place to work from, thanks everyone for the tips
> it helped me out. :)

instead of forcing a specific pixel format you should DisplayFormat
your surfaces after loading. this will work regardless of the current
screen mode and colordepth. (tip: SetVideoMode(...SDL_ANYFORMAT))


More information about the SDL mailing list