[SDL] The seeming incredible cost of SDL_UpdateRect
Sam Lantinga
slouken at devolution.com
Mon Sep 1 10:06:01 PDT 2003
> > I'm moving today (was hoping that I was making a common or obvious mistake
> > and so there might just be a solution waiting when I moved... hoping being
> > the operative), will slice my code up for posting once settled at new
> > address - shouldn't be too long.
> I've found some time now.
> And, thanks to Sean Ridenour, I found out what is going on. For whatever
> reason, SDL is unable to create a hardware surface for my 'FrameBuffer'
> (w.r.t. the code below), so the 78% must be the cost of trying to throw
> about 47mb (in the 24bpp mode my card defaults to) across the bus every
> second.
Try turning the #if 0 at line 1397 in SDL_dx5video.c to #if 1 and see if
that works for you.
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
More information about the SDL
mailing list