[cairo] double buffering with cairo
daniel.amelang at gmail.com
Mon Dec 11 12:45:49 PST 2006
On 12/11/06, Ignas B. <ignohp at gmail.com> wrote:
> is there a way using cairo to make yours own double buffering instead of
> using gtk
> provided double buffering.
> I did few benchmarks for gtk default double buffering and mine double
> buffering. The gain
> was 4 frames per second. (21 instead of 17). So i am thinking is there a
> similar way
> to do the same with cairo. Just i cant find a short and straightforward way
> to do that.
All double buffering techniques are performed outside cairo, so you're
looking in the wrong place. If you've already figured out how to
double buffer w/out help from gtk, then you have what you want
already. Just modify that same code to use cairo for drawing. Perhaps
the confusion here is that you're not sure how to use cairo w/out gtk?
More information about the cairo