• 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: Background threading in an NSView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Background threading in an NSView?


  • Subject: Re: Background threading in an NSView?
  • From: Scott Ribe <email@hidden>
  • Date: Tue, 15 Feb 2005 13:44:02 -0700

> Is that a good idea or should I rather focus on optimizing my drawing
> routines?

I'm not sure I can state with authority that it's a good idea, but it is
what I did in my own application ;-) It can be a complicated solution if you
try to work on images in advance of demand, because you need to be able to
change the queued order according to where the user goes... But it's much
easier if you just display the low-quality one and at the same time request
the higher-quality version from a background thread.

You can also look into using vImage to get high-quality Altivec-optimized
scaling. But under Panther it has some performance gotchas. Quick advice,
instead of using vImageScale functions directly, use the lower-level shear
functions, and perform the horizontal shear first (unless you have very wide
but short images). Trust me, this advice is from Apple DTS--the entire
details are too long to go into here, but the advice works under Panther
and, uhm, I expect that it at least won't hurt performance in the forseeable
future ;-)


--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Background threading in an NSView? (From: Michael Becker <email@hidden>)

  • Prev by Date: Re: Table Columns Don't Respect MinWidth?
  • Next by Date: Re: Beta testers needed
  • Previous by thread: Background threading in an NSView?
  • Next by thread: Synchronising views within an enclosing scroll view
  • Index(es):
    • Date
    • Thread