I’m seeing a mailing list posting here: http://lua-users.org/lists/lua-l/2020-01/msg00370.html which links to a couple of GitHub libraries for using https://zeromq.org/ for a node based approach to multi-threading: http://lua-users.org/wiki/MqLua . I wonder if Defold could benefit from this? Either for networking or for individual game object scripts? It’s probably a ton of effort but I’m just curious what options are considered, etc. and if there’s some plans for future enhancements i.e. if devices have even more cores in the future
We did some work on a job system to divide complex computational work on multiple threads, but it was never taken further than a proof of concept.
I haven’t heard of MqLua before. There’s also LuaLanes but it’s not something we have explored.
The question is when something like this is needed? And if you run into a situation where you need to do a lot of work in Lua I think it’s a candidate for switching to native code instead (we have plans to expand the Defold SDK for extensions to contain API functions to manipulate game objects from C).
6 Likes