Re: drawRect problem
Re: drawRect problem
- Subject: Re: drawRect problem
- From: Uli Kusterer <email@hidden>
- Date: Fri, 2 Mar 2007 09:00:12 +0100
Am 27.02.2007 um 00:50 schrieb Ken Tozier:
I'm using a tracking rect on the whole view and mouseEntered/
mouseExited to turn the timer on and off.
Well, that's a start. :-)
I found through testing that Cocoa was getting really bogged down
when I used a tracking rect for each cell in the view. If you moved
the mouse rapidly all over the view, it was possible to get 5 to 10
seconds ahead of the refreshing and you could just sit there and
watch as it struggled to catch up.
You shouldn't get such bad performance, unless you're doing
something ... well... stupid. Like forcing an immediate redraw and
flush of the window buffer instead of using setNeedsDisplay:, or
redrawing the whole view every time instead of just the dirty rect,
or dirtying the entire view instead of only the rects that changed.
Or having your tracking rects overlap and fight, or whatever...
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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