• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Coalesced updates and refresh rate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Coalesced updates and refresh rate
      • From: Graham Cox <email@hidden>
References: 
 >Coalesced updates and refresh rate (From: Wolfgang Kundrus <email@hidden>)
 >Re: Coalesced updates and refresh rate (From: Graham Cox <email@hidden>)
 >Re: Coalesced updates and refresh rate (From: Wolfgang Kundrus <email@hidden>)
 >Re: Coalesced updates and refresh rate (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Coalesced updates and refresh rate
  • Next by Date: Re: Coalesced updates and refresh rate
  • Previous by thread: Re: Coalesced updates and refresh rate
  • Next by thread: Re: Coalesced updates and refresh rate
  • Index(es):
    • Date
    • Thread