• 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: Threaded drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threaded drawing


  • Subject: Re: Threaded drawing
  • From: Sean McBride <email@hidden>
  • Date: Wed, 04 Dec 2013 15:40:49 -0500
  • Organization: Rogue Research Inc.

On Wed, 4 Dec 2013 21:33:16 +0100, Graham Cox said:

>NSView has -setCanDrawConcurrently, which, when you also permit this at
>the window level, will handle its -drawRect refreshes on a background
>thread. I’ve been experimenting with this to see if it yields any
>worthwhile gains,

I looked into to few years ago, but gave up when I discovered it doesn't (didn't?) support layer-backed views.

>but it doesn’t appear so - there seems to be a lock on
>the main thread that waits until the drawing thread has finished,
>presumably to synchronise the final window update. That being the case,
>it doesn’t improve responsiveness over drawing on the main thread, so I
>wonder whether there’s much point to this?

I think the idea is that several views can do their drawing independently on different threads, but the main thread waits for them all to be done.  That limits you to the speed of your slowest view, but can help if you have several views that are all pretty slow.

I haven't seen concurrent drawing talked about in recent WWDC videos, so wonder about it really...

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

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


References: 
 >Threaded drawing (From: Graham Cox <email@hidden>)

  • Prev by Date: Threaded drawing
  • Next by Date: Autolayout Greedy Fill question
  • Previous by thread: Threaded drawing
  • Next by thread: Re: Threaded drawing
  • Index(es):
    • Date
    • Thread