Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xpm slow?



>>>>[From Niilo Neuvo]
    
    
    There is no way you can draw a font character faster than using a
    fixed size pixmap with memcpy/bcopy.


Drawing isn't actually the issue that was being discussed.


Assuming you have a pixmap the same depth/size as a given font
character...
If you are drawing ONE, basically the same thing is involved:
you send the font or pixmap identifier, along with a whole bunch of X
padding.

This is true whether you are drawing over the net, or to your own machine.

On the other hand, if you are drawing MULTIPLE pictures, for pixmaps, you
have to send a separate set of padding for each pixmap. whereas
if it is all on one horizontal line, you can tell X
padding:font_string:padding
once. Which makes fonts faster in that sense.