[cairo] Screen orientation

Koen Kooi koen at dominion.kabel.utwente.nl
Tue Dec 11 01:53:14 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Carl Worth schreef:
> On Mon, 10 Dec 2007 22:38:28 +0100, Jean-Claude Repetto wrote:
>> I am using :
>> 	cairo_rotate (cr, M_PI/2);
>> 	cairo_translate (cr, 0, -screen_width);
> 
> So that looks just fine.
> 
> And the question, like Behdad said, becomes "what exactly is slow in
> this case?".

I don't know how cairo rotates things, but when we experienced slowness
running X in the correct user rotation, Richard Purdie patched kdrive,
illustrated with the following comment:

- - * Copy the bits, always write across the physical frame buffer
- - * to take advantage of write combining.
+ * Copy in blocks of size BLOCKSIZE_WIDTH x BLOCKSIZE_HEIGHT
+ * to reduce the number of cache misses when rotating 90 or
+ * 270 degrees.

So the slowness could be due to cache-misses, but as I said, I don't
know how cairo rotates things.

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFHXl4KMkyGM64RGpERAiN+AJ90zbnslVHaJIFRf+MOVARTJPn4bwCguaTJ
sbWhk9xumqvTszP93tIa9QQ=
=RFWw
-----END PGP SIGNATURE-----



More information about the cairo mailing list