My playground for testing cairo's OpenGL-backend "cairo-gl".
This is my playground for experimenting with cairo's new OpenGL backend "cairo-gl". In order to compile and run this, you need to have a cairo 1.13.1 compiled with --enable-gl.
On a Nvidia GeForce GTX 580 (using nvidia's binary driver) I get around 150 fps and I'm not using any surface-buffering. Doing that would speed things up even more. The scarab/cairo-logo in the lower left corner, is a SVG-file rendered as is each frame. I can remember time when this would make a machine come to a halt :)
There are some drawing operations which hit slow paths, e.g. trying to draw any italic/oblique text kills the framerate, if you render your text with pango_cairo_
Also using cairo_push_group(), cairo_pop_
There are still a lot of things I need to try out, but this is looking very promising and the boiler-plate code needed is ok-ish. Using this with cairo-gl compiled against OpenGL|ES 2.0 is another thing I want to try out and then deploy it my UbuntuTouch-devices Nexus4 and Nexus10.
A screencast of what it looks like: https:/
View full history Series and milestones
trunk series is the current focus of development.