[cairo] Lander Game

Behdad Esfahbod behdad at behdad.org
Mon Jan 8 15:13:02 PST 2007


On Mon, 2007-01-08 at 18:07 -0500, Alex Mac wrote:
> 
> 
> Anyway, rendering to an image surface only seems to provide a small
> improvement in performance, It's still slower than Qt4.

You shouldn't render to an image surface.  Do it to a surface created
using cairo_surface_create_similar(), passing in your destination
surface.  This way you get a pixmap in the X server instead of a local
image, so the image does not have to be transferred to the X server at
all.

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





More information about the cairo mailing list