On Oct 25, 2009, at 8:00 PM, Graham Cox wrote:

But caching to a bitmap of some kind is a much bigger win, provided you do it at the scale you need to draw it at (and recache if that scale changes). Using CGLayer can generate really big speedups, so that's worth looking into, but even the venerable NSBitmapImageRep is a good way to cache and easier to use than CGLayer.

I don't know enough about the performance differences to agree or disagree, but it makes sense. The zooming resolution issues inherent to bitmaps, however, would probably negate any perceived advantage for the user, since clicking the zoom in/out buttons would take you right back to the original problem at least once during the session. Sometimes usability is at least as much about perception as actual performance.

--
I.S.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to