Re: Threaded drawing
Re: Threaded drawing
- Subject: Re: Threaded drawing
- From: Jens Alfke <email@hidden>
- Date: Mon, 09 Dec 2013 09:08:25 -0800
On Dec 9, 2013, at 8:45 AM, David Duncan <email@hidden> wrote:
> One major impediment to this is that you cannot use the same graphics context between multiple threads, and as such using the graphics context that AppKit gives you forces you into a single threaded model.
Ah, interesting.
What’s the slow part of the drawing, Graham? Is it the CG calls themselves, or your own computations that lead up to them? If the latter, you could farm out those computations to multiple threads, and schedule the actual rendering calls on the single thread that has the graphics context.
—Jens
_______________________________________________
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