[cairo] Cairo Drawing Speed
emmanuel.pacaud at lapp.in2p3.fr
Mon Nov 23 23:41:32 PST 2009
Le mardi 24 novembre 2009 à 02:50 +0100, Duong Hoang Linh a écrit :
> 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?
700/800 ms for drawing 90 lines seems slow.
But wihout showing us your code, nor telling the platform you use for
your tests, it's not easy to give you an advice.
More information about the cairo