On Sun, 10 Dec 2000, Dennis Bjorklund wrote:

> On Sun, 10 Dec 2000, Ove Kaaven wrote:
> 
> > > I have been trying to find out why civ2 is so slow. I don't think it is
> > > bacause the DIB's are too slow.
> >
> > Why not? (With the current CVS, don't you get a lot of "potential
> > optimization" messages?) Aren't you aware of the potential immense speed
> > hit and inefficiencies the DIBsection code represented?
> 
> No, I don't know much about the DIBsections.
> 
> I get messages about potential optimization. I change it to use something
> fast but wrong.

Ok. What did you do, what does your code look like?

> The graphics was messed up but still as slow, but I don't
> really know the DIB code so maybe I did something wrong. It's very slow
> and it's very small images, therefore, I don't believe that it can be only
> the DIB's problem.

Small images? The screen is *big*. If you're familiar with the old game
technique of "dirty rectangles", this is a technique where the entire
screen is in a single off-screen bitmap, and small pieces of it are copied
to the screen as necessary. The DIBsection overhead in x11drv currently
spans the whole bitmap, not just the copied parts, which means that the
DIBsection overhead becomes *more* significant, not *less*, as the images
get smaller.


Reply via email to