Version: 1.0

Posted: 2005-06-01

Build Requirements: Tiger

Runtime Requirements: Tiger

View Source Code:

Download Sample (“QuartzCache.zip”, 195.1K)
Download Sample (“QuartzCache.dmg”, 236.9K)



Description

This sample code shows several caching techniques in Quartz 2D

- CGImageRef re-use and performance benefit

- Caching using a CGBitmapContext

- Caching using a CGLayerRef

- Drawing an updated CGBitmapContext

- Drawing an updated CGLayerRef

- Use of CGImageSource caching

- Implications of Flushing on overal performance

Document Revision History

Date Notes
2005-06-01Demonstrates several caching techniques using CGBitmapContext, CGImageRef re-use, CGLayerRefs, CGImageSource.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.