[cairo] Cairo drawing speed
tgriggs at cincom.com
Fri Dec 11 12:06:45 PST 2009
On Dec 11, 2009, at 11:46 AM, Carl Worth wrote:
> On Mon, 23 Nov 2009 16:46:12 +0800, Duong Hoang Linh <linh.duong at quantuminventions.com
> > wrote:
>> I have implemented a simple application to draw a set of 90 lines and
>> measure the execution time of drawing using Cairo.
> Hi there, thanks for your interest in cairo.
>> At the moment, i want to evaluate the performance of Cairo in terms
>> 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?
> Before we could give much of a useful answer, we'd have to know a few
> more things about your program, such as:
> What kinds of lines? (axis-aligned or not? pixel-aligned? pixel
> width or
> wider/thiner? etc.)
> Which backend are you targeting (image? xlib? other?)
> The easiest way we could comment on whether there's any performance to
> be gained is if you could share your program of interest.
Also, iirc, if your 90 lines are all the same source (color), it's
faster to path all 90 lines at once, and the do one stroke, than it is
to do line segment, source, stroke, 90 separate times.
"I did not have time to write you a short program, so I wrote you a
long one instead."
More information about the cairo