Re: How to optimize image loading during core animation?
Re: How to optimize image loading during core animation?
- Subject: Re: How to optimize image loading during core animation?
- From: Gabriel Zachmann <email@hidden>
- Date: Thu, 17 Feb 2011 18:15:10 +0100
Thanks a lot for your response, Tomas!
> since no one replied so far, I’d take a try. I’m not much familiar with desktop Cocoa, but on iOS we have to be careful to keep longer actions from the main thread, since delays in the main thread block the UI. Isn’t this about the same issue?
Good question. One problem is that I have not understood a fundamental property of Core Animation.
I have always assumed that the animation, once I have set it up, is done by the OS / Core Animation in the background, i.e., in a separate thread.
Is that correct?
If yes, then wouldn't that mean that moving my image loading into a separate thread would *not* help at all?
If no, then exactly when / where is the animation performed?
You see, my understanding of the interplay between Core Animation and my application is still a mess ;-}
So any light anybody can shed on it will be highly appreciated.
> Image loading would be the first thing I would move into a background thread. Can you use GCD? It’s a perfect fit for such producer/consumer tasks.
Please explain "GCD".
Thanks a lot in advance.
Best regards,
Gabriel.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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