[cairo] Where's the bottleneck in using glitz/cairo/librsvg?

David Reveman davidr at novell.com
Mon Jun 12 03:54:37 PDT 2006


I've played with the example-code a bit. Added a useful --benchmark
switch, a --surface-buffering switch and a --glitz switch. I also
changed so that buffered surfaces are larger and we scale down instead
of up. Removed the text so we're only measuring icon rendering.

My current results:

without my patch for server-side gradients:

/cairo-dock --benchmark
~5fps

with my patch for server-side gradients:

/cairo-dock --benchmark
~10fps


with surface buffering (using today's xgl-0-0-1 branch with slightly
optimized software scaling code):

/cairo-dock --benchmark --surface-buffering
~300fps


glitz backend:

/cairo-dock --benchmark --surface-buffering --glitz
~2000fps

-David

On Wed, 2006-06-07 at 03:13 +0200, Mirco Müller wrote:
> Greetings everybody!
> 
> 	Trying to achieve crisp animated graphics I encountered an unexpected
> CPU-hogging. Have a look at this blog-entry...
> 
> 	http://macslow.thepimp.net/?p=58
> 
> 	You'll find example-code, a sysprof-log and screencasts of the issue at
> hand. While it looks like librsvg to be the "bottleneck", I would like
> to hear opinions of others on this, who are more experienced with
> profiling-work and have a deeper knowledge of glitz, cairo and librsvg.
> 
> Thanks in advance for your help!
> 
> Best regards...
> 
> Mirco "MacSlow" Müller
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.c
Type: text/x-csrc
Size: 20441 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060612/94dadc90/main-0001.c


More information about the cairo mailing list