[cairo] Cairo Drawing Speed

Duong Hoang Linh linh.duong at quantuminventions.com
Mon Nov 23 17:50:29 PST 2009


Hi all,

I have implemented a simple application to draw a set of 90 lines and 
measure the execution time of drawing using Cairo.

In more detail, i want to draw a set of 90 linses, which constitute 388 
points (average 4.3 points/line). I divide 90 lines into 3 groups and 
draw each group in different colors/widths. It is noted that i draw each 
line with border. The execution time is summarized as follows:

LINE_CAP_ROUND, LINE_JOIN_ROUND: it takes 802ms

LINE_CAP_BUTT, LINE_JOIN_MITTER: it takes 700ms


At the moment, i want to evaluate the performance of Cairo in terms of 
speed for drawing and I need to achieve the time execution between 300ms 
and 500ms (<300 is certainly wonderful). Is there any possible way for 
speeding up my drawing with Cairo?

Thanks.


More information about the cairo mailing list