[cairo] Background image
Alex Mac
lots.of.mailing.lists at gmail.com
Sat Feb 17 08:58:25 PST 2007
> It's quite possible that you don't have to use the glitz backend to
> get a nice speedup. Alex Mac recently sped up his lander game from 6
> fps to 70 fps by just optimizing his own code to use cairo more
> efficiently.
>
> The lander game (with full source code):
>
> http://alexmac.cc/lander/
>
> The cairo thread about optimizing the game:
>
> http://lists.freedesktop.org/archives/cairo/2007-January/009062.html
>
> If you share your code (and maybe some profiles, too), it's likely
> that someone on this list will also help you get better performance
> without having to use a different backend.
>
> Dan
To save you reading the whole thread the moral of the story is this:
cache static content as rasters and only render what has changed.
You should also try using native (Xlib) surfaces instead of image surfaces.
More information about the cairo
mailing list