On Tue, 11 Dec 2001, Jonathan Walther wrote:

> On Tue, Dec 11, 2001 at 05:07:02PM -0800, Mark Vojkovich wrote:
> >   Actually, if the arrow is simple, the fastest way to draw
> >it would be with a rectangle and a polygon (triangle).  That
> >would be faster than an arrow shaped stipple.
> 
> Alas, the arrow is a png that uses 200 different colors, plus has alpha
> channel information which I'm ignoring for now.
> 
> Is XSetClipOrigin() also really slow, or could I get away with using it,
> given that I'm only updating the screen 30-40 times per second?  I have
> yet to dip my toes into the Render extension, so if XSetClipOrigin() is
> "fast enough", then my application need have no fuss nor muss.

  XSetClipOrigin is much faster than XSetClipMask.  Both force a
recomputation of the cliplist associated with the GC, but XSetClipMask
is really expensive because internally the clipmask is stored as
a list of rectangles so it has to be converted from a bitmap to a
list of rectangles whenever you change it.  Of course, all of these
are just CPU expensive and not graphics engine expensive, so they
both become less of an issue on faster machines.  Setting the
XSetClipOrigin won't be a problem for 30-40 operations per second.


                                Mark. 

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to