Re: Concurrent loading of images ?
Re: Concurrent loading of images ?
- Subject: Re: Concurrent loading of images ?
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Sat, 9 May 2020 19:13:07 +0200
> Time to learn some more about the frameworks you’re using then :)
:-)
> People have long dealt with this on iOS by doing tricks like first drawing
> that image to a 1x1 bitmap on a worker thread before sending it on to the UI.
Would that really make the background (worker) thread execute all that internal
copying/decoding of images in the *background* thread?
I am asking because, currently, all this stuff gets executed in the main thread
invoked by some observer.
And, after all, even a background thread eventually has to put the new image in
the layer hierarchy, which, I fear, will cause the heavy lifting to be done by
the main thread, again.
Can you point me to some resources ? or examples that have solved this issue?
Best regards, Gabriel
> You have to do something along these lines (as far as I’m aware) to prompt
> the first decode of the image to happen. After that, drawing it will be much
> faster.
>
> Mike.
_______________________________________________
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