[cairo] How to efficiently clear a surface

Jost Boekemeier jost2345 at yahoo.de
Tue Aug 3 12:20:00 PDT 2004


Hi,

I've tried to re-use surfaces and clear them, but none
of the methods I've used was faster than simply
creating a new surface.

I am not sure if it is a good idea to keep a
persistent surface_t for each shape_t anyway.  


It all depends on the server-side implementation. A
typical desktop has 1300 up to 4000 widgets.  Can the
X server handle that many surfaces efficiently or is
it better to create a surface on the fly during
draw/compose?


Jost


	

	
		
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 100MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de



More information about the cairo mailing list