Minggo Zhang wrote:
Yep, AssetsManager will support downloading in a new thread later.
There are two ways to do it
* Change update(), make it download resources in a new thread.
* Add a new method, such as updateAsync(), to download resources in a new thread.
Which is better?
Of course, AssetsManager should add a method to stop downloading.
Thank you for your feedback.
option2，adding updateAsync() method, so that AssetsManager can do both sync and async downloading? it may not be a good thing to have too many options.
plus, it needs a lot more effort to document it, as i can see you guys are very good coders, not very good at documenting,
i prefer option1, “* Change update(), make it download resources in a new thread.” and dispatch message to my main thread(getting call back) for:
- progress, so that i can modify my progress bar
- errors, sometimes games are Forbidden to download new versions to continue.
and i think pausing, resuming are alot to ask