Re: [gentoo-user] cairo USE flags

2013-01-20 Thread Florian Philipp
Am 19.01.2013 12:36, schrieb Daniel Troeder:
> Am 19.01.2013 11:49, schrieb Florian Philipp:
>> Hi list!
>>
>> I've noticed that there is probably a lot of performance to be gained
>> from activating backend acceleration in cairo. It's just that I have no
>> clue about the details:
>>
>> drm, gallium and opengl are all described as accelerating backends. Does
>> that mean they are mutually exclusive or can I activate them all and
>> cairo will sort it out?
>>
>> What does the qt4 use flag do? Is it just a language binding?
>>

To answer myself on this: Yes it is.

>> Does anyone know a simple benchmark for cairo?
>>
>> Thanks in advance!
>> Florian Philipp
>>
> I found your question very interesting, and so I used... google :D
> 
> -> Cairo seems to bring a benchmark with the source in cairo\perf.
> -> http://cworth.org/intel/performance_measurement/
> 

I stumbled across this, too, while looking at the source tar-ball. I've
done some benchmarks with the "macro" tests (i.e. traces) on mylaptop
with Intel graphics and a desktop with the free radeon driver.

In both cases, opengl was usually faster (sometimes considerably) than
xlib. xcb never finished for some reason.

> -> The Phoronix test suit ofc has a performance test for cairo :)
> -> I looked into some examples, and there are BIG differences between
>gfx cards:
> http://openbenchmarking.org/prospect/1204129-SU-NVIDIAGEF19/3653c29c52e5da38d1879d193dc660515f97d242
> 
> -> This posting is most interesting:
> http://lists.cairographics.org/archives/cairo/2012-October/023609.html
> 
> As a nvidia blob user it seems I should be using the XRender backend.
> But how? I can USE=-opengl to have that out of the way, but what's with
> the other USE flags?
[...]
> Now I wonder if cairo doesn't simply choose the best one automatically?
> Or should I "X -xcb -opengl -openvg"?
> (Keeping "glib qt4 svg" for apps on.)
> 
> [..]
> 
> I used cairo-trace to start some programs and it seems like programs can
> set their desired backend. There is a "/type" setting:
> 
>   /type 42 set   (firefox, soffice, clementine, evince, opera,
> crack-attack, digikam, inkscape)
>   /type /xlib set(firefox, soffice, clementine, evince,
> crack-attack, digikam, inkscape)
>   /type /xrender set (firefox, soffice, clementine)
> 
> 
> I wonder what "42" is...
> 

I think that's related to a font format.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] cairo USE flags

2013-01-19 Thread Daniel Troeder
Am 19.01.2013 11:49, schrieb Florian Philipp:
> Hi list!
> 
> I've noticed that there is probably a lot of performance to be gained
> from activating backend acceleration in cairo. It's just that I have no
> clue about the details:
> 
> drm, gallium and opengl are all described as accelerating backends. Does
> that mean they are mutually exclusive or can I activate them all and
> cairo will sort it out?
> 
> What does the qt4 use flag do? Is it just a language binding?
> 
> Does anyone know a simple benchmark for cairo?
> 
> Thanks in advance!
> Florian Philipp
> 
I found your question very interesting, and so I used... google :D

-> Cairo seems to bring a benchmark with the source in cairo\perf.
-> http://cworth.org/intel/performance_measurement/

-> The Phoronix test suit ofc has a performance test for cairo :)
-> I looked into some examples, and there are BIG differences between
   gfx cards:
http://openbenchmarking.org/prospect/1204129-SU-NVIDIAGEF19/3653c29c52e5da38d1879d193dc660515f97d242

-> This posting is most interesting:
http://lists.cairographics.org/archives/cairo/2012-October/023609.html

As a nvidia blob user it seems I should be using the XRender backend.
But how? I can USE=-opengl to have that out of the way, but what's with
the other USE flags?  looking at the ebuild I see, that I only need
"X" :)

$(use_with X x) \
$(use_enable X xlib) \
$(use_enable X xlib-xrender) \
$(use_enable aqua quartz) \
$(use_enable aqua quartz-image) \
$(use_enable debug test-surfaces) \
$(use_enable directfb) \
$(use_enable glib gobject) \
$(use_enable doc gtk-doc) \
$(use_enable openvg vg) \
$(use_enable opengl gl) \
$(use_enable qt4 qt) \
$(use_enable static-libs static) \
$(use_enable svg) \
$(use_enable xcb) \
$(use_enable xcb xcb-shm) \
$(use_enable drm) \
$(use_enable gallium) \

Now I wonder if cairo doesn't simply choose the best one automatically?
Or should I "X -xcb -opengl -openvg"?
(Keeping "glib qt4 svg" for apps on.)

[..]

I used cairo-trace to start some programs and it seems like programs can
set their desired backend. There is a "/type" setting:

  /type 42 set   (firefox, soffice, clementine, evince, opera,
crack-attack, digikam, inkscape)
  /type /xlib set(firefox, soffice, clementine, evince,
crack-attack, digikam, inkscape)
  /type /xrender set (firefox, soffice, clementine)


I wonder what "42" is...


Greetings,
Daniel




[gentoo-user] cairo USE flags

2013-01-19 Thread Florian Philipp
Hi list!

I've noticed that there is probably a lot of performance to be gained
from activating backend acceleration in cairo. It's just that I have no
clue about the details:

drm, gallium and opengl are all described as accelerating backends. Does
that mean they are mutually exclusive or can I activate them all and
cairo will sort it out?

What does the qt4 use flag do? Is it just a language binding?

Does anyone know a simple benchmark for cairo?

Thanks in advance!
Florian Philipp



signature.asc
Description: OpenPGP digital signature