[SDL] SDL slow load time?

Mark Buster mbuster at mchsi.com
Fri Mar 16 06:39:50 PDT 2007


> Mattias Karlsson <betasoft <at> acc.umu.se> writes:
Thanks for the help Mattias (though I haven't fixed it yet). I'm still learning,
and you definitely taught me a couple of things.
The buffer overrun thing looks like a sound practice to me.
I'll be applying this one quite a bit. 
I did start placing some GetTicks around, and have gotten a good picture of
what's going on. Here's a quick breakdown:

readxml() - 4ms 

image = IMG_Load ( stmp ); - about 1100ms

each BlitSurface() - about 60-80ms

So it looks like a cumulative effect, with IMG_Load being the worst culprit.
By the way, we're drawing to a 16bit 800x600 screen. 

Thanks for the input, any further insight?





More information about the SDL mailing list