[Dev] How would you like to see threaded LibLoading work?

This discussion was specifically for the Python function bge.logic.LibLoad(), not a general interface for async lib loading, I’m sorry if I didn’t make that clear. That’s not to say a logic brick couldn’t be added latter, but I was looking for feedback on a Python API, which means I’m not really concerned how it affects non-Python users. Also, Python callbacks are already used by the BGE in the form of KX_Scene.pre_draw and KX_Scene.post_draw. KX_Scene.post_draw is the only way I do HUDs these days.

As for an example of getting progress via a callback, look at post #3.

And yes, I do plan to normalize the percentage.

I agree with that moguri, the focus is the Python binding.

pre_draw and post_draw are the callbacks I was looking for. As far as I remember the purpose of this callbacks are rendering purposes rather than logic.

Thanks for the example

I have implemented the object described in post #33, and committed it to Swiss. Thanks for the feedback everyone!

Fantastic work moguri. So now we have asynchronous loading?

Asynchronous loading has been in Swiss for a while, it just now has a usable interface. :wink: