[cairo] Cairo drawing speed

Duong Hoang Linh linh.duong at quantuminventions.com
Fri Dec 11 11:09:44 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 and different line drawing 
options. 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 those figures do no impress me since i need to 
achieve the time execution between 300ms and 500ms. Is there any 
possible way for speeding up my drawing with Cairo?

Thanks.


More information about the cairo mailing list