DON'T USE 24 bit for SDL_SetVideoMode

Hi!
I’m making this message sort of to myself and any other newbs out there that might just so happen to have made the same silly mistake I made. I just wanted to make this
post because SDL_Flip was executing very slowly for me and in all the hits I searched I couldn’t find any places where someone reported this being his or her reason, or maybe it was but he or she didn’t realize.
I just wanted to leave this online in case anyone out there ever stumbles onto it having made the same mistake as me, I’m sure it’s a low probability but my thinking was “true color… 24” when I should have realized 32 would be more standard for sdl, anyway the point is if sdl_flip is taking long in true color try checking to see if you set the bitdepth to something other than 32.

Passing 0 to SDL_SetVideoMode() works well too. It chooses the bit depth
for you.

Jonny DOn Mon, Jan 7, 2013 at 1:04 PM, Omar Eshmawi <neo_storm at live.com> wrote:

Hi!
I’m making this message sort of to myself and any other newbs out
there that might just so happen to have made the same silly mistake I made.
I just wanted to make this
post because SDL_Flip was executing very slowly for me and in all the hits
I searched I couldn’t find any places where someone reported this being his
or her reason, or maybe it was but he or she didn’t realize.
I just wanted to leave this online in case anyone out there ever stumbles
onto it having made the same mistake as me, I’m sure it’s a low probability
but my thinking was “true color… 24” when I should have realized 32 would
be more standard for sdl, anyway the point is if sdl_flip is taking long in
true color try checking to see if you set the bitdepth to something other
than 32.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org