async_load from disk

Is async_load what I think it is? Reason I’m asking is it’s not explicit in the docs, and I can’t find much by searching. I’ve not tested yet. Will it load a collection proxy from disk asynchronously? Meaning that it will not lag the game while it loads the assets (at least on non-HTML5 targets).

I put a lot of music into my games, and I’d like to be able to async load and unload track after track randomly without making game lag.

Like others I’ve been using BBS as a performance reference and seeing how well it handles certain things. When you scroll up on the world map I assume that’s where async_load is used? That’s a ton of gorgeous art. It seems to load smoothly if I scroll slowly, but I think I can tell there are slight hangs. It also seems like once all parts are loaded they are not then unloaded?

We will have to ask @Andreas_Jirenius about the details of the scrolling map. I was part of the team doing the template project Blossom Blast Saga is based upon, but we never really solved the “infinite” scrolling map without stutter. Since then Defold has added support for async_load of collections, but if I remember correctly it can still hang when loading really large resources.

2 Likes