On 9 Dec 2013, at 5:36 pm, Jens Alfke <j...@mooseyard.com> wrote:

> So if you can avoid it, you shouldn’t be doing your own rendering into 
> images. I haven’t been following the details of this thread, but my guess is 
> you’ll get better performance by drawing the tiles directly to the view, just 
> setting a clipping rect beforehand so the drawing is limited to the tile your 
> thread is working on.
> 

Indeed, that’s certainly my intuition too, if only there were a way to do it.

Trouble is, each thread needs its own context in order to draw into the view 
without a lock on every set of context drawing calls, and there’s no way to 
create such a context that doesn’t have its own bitmap image. The image is only 
there because it’s the only way to make a context (that I could see - maybe 
using a PDF context might work, I’ll try that).

—Graham


_______________________________________________

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