Re: Speeding up image drawing?
Re: Speeding up image drawing?
- Subject: Re: Speeding up image drawing?
- From: Seth Willits <email@hidden>
- Date: Tue, 01 Nov 2011 12:58:39 -0700
On Oct 31, 2011, at 6:44 PM, Arbit Richardi wrote:
> I'm looking for tips to speed image drawing on OS X — this is a
> primary function of my application. I started out naively with
> NSImage, switched to CGImage, tried layer backing, and now draw
> directly into a hosted layer with Quartz. I have an implementation
> using CATiledLayers but it doesn't add speed in common cases.
>
> At this point, large images still draw significantly slower than in
> Preview. For example, I can display a 25MB test JPEG (~9k x 9k pixels)
> in ~2 seconds while Preview can display it in ~1 second on the same
> machine.
Well, your multiple approaches make me wonder what you mean by "draw" but take a look at the graphics context's interpolation quality for scaling. It makes a huge difference.
--
Seth Willits
_______________________________________________
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