loopier / animatron

Animatron for Godot 4.x <
15 stars 1 forks source link

Loading assets should be done on a dedicated thread #31

Closed loopier closed 2 months ago

loopier commented 5 months ago

Load assets freezes the app until they are fully loaded. This is not a desired behaviour.

Assets should probably be loaded on a different thread. Right?

There's an issue in Godot's repo talking about this: https://github.com/godotengine/godot/issues/55566

loopier commented 4 months ago

I found this video that seems to address this issue.

It creates a cache array where images are loaded, then they are already in memory and can be used elsewhere.

loopier commented 4 months ago

Maybe what we need is WorkerThreadPool.

totalgee commented 4 months ago

Yes, something like that will work well for this.

loopier commented 2 months ago

Solved in https://github.com/loopier/animatron/commit/af185254625050db1a47afafa7fe1e0ecff43eeb