[Y-devel] Cairo 2D drawing library.

claude M c.mench at free.fr
Thu Feb 26 18:00:07 GMT 2004


> I admit I have a slow computer (dual-867), but turning on dock 
> magnification and runnning the cursor over the dock causes what looks 
> like significant CPU load (by watching the admittedly low-res CPU 
> monitor). Even though some of the work is done in the GPU, the CPU 
> still has to calculate the nice scaling factors as the mouse moves, 
> which is a fair bit of work. Re-drawing vectors at that rate would be 
> impossible even on a dual G5. The GPU wouldn't be any help at all! I 
> have seen this kind of slowdown in the Aqua U.I. itself -- Aqua already 
> has full support for arbitrarily complex vector drawing, using 
> NSBezierPath. This is how Mail can put a little badge on its dock icon 
> with the number of new messages you have. You can quickly crush the 
> system by trying to dynamically redraw some set of bezier paths over 
> and over again in an animation-style scenario.

Let me just jump in to say, that AQUA doesn't acellerate any vector 
drawing by GPU, only the rasterisation part of the opengl pipeline is
at work with quartz extreme, we have the opportunity to do much
more with Cairo.

More over, nothing prevents us to use bitmaps for aqua like buttons, it
doesn't remove anything to the fact that vector drawing can be usefull for
a GUI. Using only the alpha blending possibility of my 3d card for the 
desktop is a shame, we can do much more with the T&L card we almost
all have...



 




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved