Cached graphics

Any 2D graphic that descends from MGraphic can be cached to enhance its drawing speed. If you want to cache a 3D graphic, you can create a TPicture instance and draw the 3D graphic into the picture as described in Chapter 6. This process converts the 3D graphic to a 2D graphic that can be cached.

This chapter describes how to use the TCachedGraphic class to cache 2D graphics. It also presents guidelines so that you can determine when graphics caching is worth the memory overhead associated with it, and when the trade-off is not worthwhile.

NOTE Graphics caching is not implemented yet.

To cache or not to cache
Class architecture

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker