• 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: IKImageView choppy?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IKImageView choppy?


  • Subject: Re: IKImageView choppy?
  • From: Graham Cox <email@hidden>
  • Date: Sun, 1 Aug 2010 16:58:39 +1000

On 01/08/2010, at 3:38 PM, Steve Christensen wrote:

> If you manage a thumbnail cache to supply those images, you could restrict the maximum memory footprint and reduce the likelihood that you'll keep getting expensive (time-wise) delays trying to generate/draw an image in the browser.


It's also well worth loading the images using a background thread, then when the load has completed, inform the view that the image is now ready to display. If you provide the browser view with the image path (IKImageBrowserPathRepresentationType), it does this for you (briefly displaying a placeholder image), but if supplying the actual image you have to do this. It can really speed up scrolling because the view is never left waiting for an image to be loaded and decoded, it only has to spend time drawing it, and because this approach will spawn as many threads as images needed at a time, it scales really well to those new 12-core Macs ;-)

--Graham


_______________________________________________

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

  • Next by Date: Re: loading French strings being in English language
  • Next by thread: Re: loading French strings being in English language
  • Index(es):
    • Date
    • Thread