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                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to