Re: NSView -drawRect optimization
Re: NSView -drawRect optimization
- Subject: Re: NSView -drawRect optimization
- From: John Stiles <email@hidden>
- Date: Tue, 12 Feb 2008 14:17:05 -0800
Paul Bruneau wrote:
If anyone likes looking at newbie code for stupid things, now is your
chance. I'll happily take any tips, comments, or even derision. My
biggest fear is to hear "There's nothing you can do about it--stuff
takes time" to which I would respond, "Then how does Blizzard do it!?
I know they are drawing more than 226 rectangles!"
At Blizzard, we render graphics with OpenGL, which is going to be a lot
faster than anything you can do on the CPU :)
I haven't looked at your code, but have you experimented with
CoreAnimation at all? This would let you leverage the GPU for your
drawing as well, which might help.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden