Re: Coalesced updates and refresh rate
Re: Coalesced updates and refresh rate
- Subject: Re: Coalesced updates and refresh rate
- From: Graham Cox <email@hidden>
- Date: Wed, 15 Jun 2011 21:05:20 +1000
On 15/06/2011, at 7:16 PM, Wolfgang Kundrus wrote:
> 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