Mac OS X Reference Library Apple Developer
Search

Worm

Last Revision:
Version 1.0, 2005-06-01
NSView performance demonstration. Uses a periodic timer to get best performance with Coalesced Update feature.
Build Requirements:
Runtime Requirements:

This sample code demonstrate multiple steps in improving the performance of a NSView based worm game. It demonstrates several versions of a WormView class that improve the performance of updating the view. The improvements include using setting the view as opaque; drawng only the necessary portions of the view; usage of Cocoa text system instead of NSString for faster string drawing; and using a periodic timer to update the view.




Last updated: 2005-06-01

Did this document help you? Yes It's good, but... Not helpful...