[cairo] Text Grid Performance

Vladimir Vukicevic vladimir at pobox.com
Wed Feb 27 12:42:18 PST 2008


On Feb 27, 2008, at 2:30 PM, Gerdus van Zyl wrote:

> For future reference the main problem was that I was relying on
> pop_group/push_group for double buffering.
>
> This is a mistake since push/pop-group calls create_similar internally
> but requests an color+alpha surface. On Windows this creates a Device
> Independent Bitmap instead of a Device Dependant Bitmap that is much
> faster. YMMV but in my app the FPS increased from 9-14 FPS to 40-55
> FPS.

Were you using push_group_with_content? or just push_group?  You can  
pass in CONTENT_COLOR with the former, and the right thing should  
happen.

     - Vlad



More information about the cairo mailing list