Background threading in an NSView?
Background threading in an NSView?
- Subject: Background threading in an NSView?
- From: Michael Becker <email@hidden>
- Date: Sun, 13 Feb 2005 02:53:27 +0100
Hi!
We all know iPhoto's effect that when you zoom (or scroll) images,
their quality is fairly bad. But if you stop zooming or hesitate during
zooming, the images' quality gets better. It feels like during zoom a
very bad resize of the images is used and as soon as the good quality
resize is done, that one is then applied.
And here goes my question: Is it reasonable and possible to create a
thread that does nothing more than resize the images according to the
current zoom-factor so that they will then be used by the view's
drawRect: method? I am thinking about using very small thumbnails for
the realtime-zooming and then as soon as the thread managed to create
the good quality resizes, these are used.
Is that a good idea or should I rather focus on optimizing my drawing
routines? How do you think does iPhoto work here? After all, it seems
like iPhoto has something like a background thread for that (because of
the delayed quality improvements...)
Thanks for your thoughts!
Regards,
Michael
_______________________________________________
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