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



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




_______________________________________________
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
References: 
 >Re: CGGradient VS CGShading (From: Luigi Castelli <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.