[cairo] Hardware acceleration

Thomas Dempton t.dempton at yahoo.com
Fri May 21 12:57:49 PDT 2010

Cairo is by default hardware-accelerated, however certain operations can be better accelerated by hardware compared to others.
A good strategy is to cache whatever possible in native cairo-surfaces, and blit that surfaces when you neet to display it.

So,  instead of e.g. drawing 100 similar shapes, render the shape one time into an ARGB surface and blit that 100 times.

From: Talguy <talguy385 at gmail.com>
To: Cairo Mailing List <cairo at cairographics.org>
Sent: Fri, May 21, 2010 7:59:54 PM
Subject: [cairo] Hardware acceleration

I am using cairomm to build a realtime application onto of minimal ubuntu.  Is cairomm by default hardware accelerated or do I have to enable an option to make it so.  I have been improving my drawing procedures but would like to give my application every advantage that it can get so that I can run it at 30 - 40 fps.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100521/04ec45c6/attachment.htm>

More information about the cairo mailing list