Re: Background threading in an NSView?
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