Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGGradient VS CGShading



Hi all,

apologies for the false alarm...

Today I found out that during my comparison tests between CGShading and CGGradient, there was a bug in my methodology
that made CGGradient perform very slow.

After new tests with the correct methodology CGGradient performance is indeed similar to the one of CGShading.

Sorry for the confusion and thanks to all who replied to this thread.

Best.

- Luigi



 
------------------------------------------------------------
 THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION.  ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED.  IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT email@hidden AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC 1-207.
 ------------------------------------------------------------


----- Original Message ----
From: David Duncan <email@hidden>
To: Luigi Castelli <email@hidden>
Cc: email@hidden
Sent: Wednesday, March 12, 2008 1:32:07 PM
Subject: Re: CGGradient VS CGShading

On Mar 12, 2008, at 1:01 PM, Luigi Castelli wrote:

> Well, the results suggest that the CGGradient approach is more than  
> 20 times slower than CGShading.
> I am guessing that has to do with the fact that with CGGradient the  
> user is forced to calculate the geometry of the gradient at drawing  
> time,
> whereas CGShading can do that at object creation time.


I just explored this with the Quartz2DShadings sample and found that  
there was virtually no difference between the two methods in  
performance today for either linear or radial shadings. Could you  
expand some on your methodology? (including source code if possible)
--
David Duncan
Apple DTS Animation and Printing
email@hidden








      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.