Re: drawAtPoint - is it really slow?
Re: drawAtPoint - is it really slow?
- Subject: Re: drawAtPoint - is it really slow?
- From: Douglas Davidson <email@hidden>
- Date: Wed, 28 Aug 2002 14:25:01 -0700
On Wednesday, August 28, 2002, at 01:05 PM, John Nairn wrote:
Is drawAtPoint inherently slow, or does it depend on the current
transformations and maybe only slows down when the view bounds do not
correspond to actual pixels?
drawAtPoint: may be slow under some circumstances, but the view
transformations are not the most important criteria. There is a
slowdown when the view in question is not flipped; beyond that, the
speed can vary based on the contents of the text and other factors.
Fundamentally drawAtPoint: is a convenience interface to the general
Cocoa text system, not a true immediate-mode drawing API.
If you have a view with many strings to be drawn with arbitrary
positions and transformations, I would suggest you take a look at the
CircleView developer example, which does just that using the Cocoa text
system.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.