[cairo] A new OpenGL backend for Cairo

Clemens Eisserer linuxhippy at gmail.com
Fri Jun 12 17:30:46 PDT 2009


Hi Luca,

Cool work :)

I wonder how exactly are trapezoids done?
I had a look in that area some time ago, and my conclusion was that
trapezoids as specified by RENDER/pixman are only possibly by either
rasterizing on the CPU or by using quite slow (at least on my i945GM)
shaders.
I've some (not per-pixel compliant) shader code laying arround, if
you're interested I could send it.

Thanks for your work again, Clemens

2009/6/12 Luca Barbieri <luca at luca-barbieri.com>:
>> Very interesting. Have you done any benchmarking to see what the
>> performance is like?
>
> On nVidia GeForce Go 7900GS using latest proprietary driver:
>
> xrender - text: 398 frames in 5.0 seconds = 79.600 FPS
> gl - text: 424 frames in 5.0 seconds = 84.800 FPS
>
> xrender - composite: 226 frames in 5.0 seconds = 45.200 FPS
> gl - composite: 46117 frames in 5.0 seconds = 9223.400 FPS
>
> xrender - gradient: 425 frames in 5.0 seconds = 85.000 FPS
> gl - gradient: 640 frames in 5.0 seconds = 128.000 FPS
>
> xrender - trapezoids: 665 frames in 5.0 seconds = 133.000 FPS
> gl - trapezoids: 1887 frames in 5.0 seconds = 377.400 FPS
>
> xrender - text2: 8814330 glyphs in 5.0 seconds = 1762866.000 GPS
> xrender - text2: 4114 frames in 5.0 seconds = 822.800 FPS
> gl - text2: 15133230 glyphs in 5.0 seconds = 3026646.000 GPS
> gl - text2: 7064 frames in 5.0 seconds = 1412.800 FPS
>
> Best regards,
> Luca Barbieri
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>


More information about the cairo mailing list