[cairo] Expensiveness of calls

Dan Amelang daniel.amelang at gmail.com
Tue Oct 9 10:11:41 PDT 2007

On 10/9/07, Gerdus van Zyl <gerdusvanzyl at gmail.com> wrote:
> I use a lot of translate and clipping commands. My question is how
> expensive are they, should they be minimized or do they have minimal
> impact?

Hey Gerdus,

Translate is cheap, and clip is cheap as long as it is pixel-aligned
(using integer positions in device coordinates). See
http://cairographics.org/FAQ/#clipping_performance for details.


More information about the cairo mailing list