Re: Coalesced updates and refresh rate
Re: Coalesced updates and refresh rate
- Subject: Re: Coalesced updates and refresh rate
- From: Wolfgang Kundrus <email@hidden>
- Date: Wed, 15 Jun 2011 14:30:16 +0200
We have to update a lot of small onscreen objects and performance is way
better, when we travers them outside the Cocoa view tree. If we would use
invalidating, we would have to go thru our complete view tree and check for
overlaps with the update rect.
Wolfgang
This did not influence it in a positive way. [NSWindow display] makes it
> worth and takes down the performance of the whole application.
>
>
>> > Is there anyway, I can inform the window that graphics need to be
>> flushed ?
>>
>> Have you tried [NSWindow displayIfNeeded] (or just [... display])?
>>
>
> Well, the question has to be asked: why are you drawing outside of
> drawRect: using lockFocus/unlockFocus anyway? Why not just schedule the
> animation using -setNeedsDisplay: and handle the actual rendering
> conventionally? Getting 60fps is no problem.
>
> --Graham
>
_______________________________________________
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