Hazen Babcock wrote:
> Hazen Babcock wrote:
>> Alan W. Irwin wrote:
>>> On 2009-03-26 14:06-0400 Hazen Babcock wrote:
>>>
>>>> Alan W. Irwin wrote:
>>>>> Hi Hazen:
>>>>>
>>>>> I have been testing the efficiency of text clipping for the cairo devices
>>>>> for a reasonably modern libcairo (version 1.6.4) and relatively modest
>>>>> 2.4GHz PC, and unlike older libcairo versions it is looking good.
>>>>>
>>>>> Here is one example:
>>>>>
>>>>> softw...@raven> time c/x09c -dev pngcairo -drvopt text_clipping=0 -fam
>>>>> -fflen 2 -o cairotest%n.png
>>>>>
>>>>> real    0m0.391s
>>>>> user    0m0.360s
>>>>> sys     0m0.008s
>>>>> softw...@raven> time c/x09c -dev pngcairo -drvopt text_clipping=1 -fam
>>>>> -fflen 2 -o cairotest%n.png
>>>>>
>>>>> real    0m0.485s
>>>>> user    0m0.468s
>>>>> sys     0m0.012s
>>>>>
>>>>> There is a relatively large amount of text in that example (the contour
>>>>> labels), and also quite a bit of graphics.  In fact it is that example 
>>>>> that
>>>>> shows (on the first page) what happens if you don't have text clipped
>>>>> properly.  But the total difference in elapsed time is trivial, just 0.094
>>>>> seconds.
>>>> Sounds okay to me. I'm a little worried that many people will have older 
>>>> versions of the library, but perhaps we can have, or at least recommend a 
>>>> minimum libcairo version during the build process?
>>> Done.  See the updated (revision 9775) README.release.
>> I was thinking about putting the warning into the cairo.cmake. Is that 
>> possible? Any pointers on where to look for an example of how to do this?
> 
> Thank you Alan for your help with this.
> 
> I've added a version check in cairo.cmake. You'll get a warning if your 
> version is less than 1.20.5. To do this I added a version argument to 
> the pkg_check_pkgconfig macro and propagated this change to the other 
> driver cmake files. I don't think I broke anything...
> 
> I have a slightly more recent version of pangocairo (1.22.2) and I also 
> get pretty much identical rendering speeds with text_clipping on or off.

And now I'm not so sure about this result. Alan, can you try with the 
xcairo driver? It seems noticeably slower to me now with text_clipping 
on. Slow enough that I can almost see it drawing each string.

-Hazen


------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to