Re: drawAtPoint - is it really slow?
Re: drawAtPoint - is it really slow?
- Subject: Re: drawAtPoint - is it really slow?
- From: John Nairn <email@hidden>
- Date: Wed, 28 Aug 2002 16:02:44 -0600
Thanks, I have been looking at CircleView and will give it a try. Two
quick questions if you do not mind:
1. Should I flip even if using Circle view or does that not help for
that method?
2. CircleView is somewhat complicated. It draws character by character
because each one is rotated differently. Can a similar approach draw a
whole string or will it still need to be character by character?
On Wednesday, August 28, 2002, at 03:25 PM, Douglas Davidson wrote:
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
----------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.mse.utah.edu/~nairn
_______________________________________________
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.