[DiscordArchive] But I don't see any lua_State's or lua API calls in your diff?
[DiscordArchive] But I don't see any lua_State's or lua API calls in your diff?
Archived author: Foe • Posted: 2024-07-18T11:18:34.371000+00:00
Original source
We spawn a temporary state in that thread that does file IO and bytecode compiling into a cache
Archived author: Foe • Posted: 2024-07-18T11:19:00.933000+00:00
Original source
Then each maps Lua state loads that cache directly from memory, so it doesn't need to compile nor do any IO
Archived author: chipzz • Posted: 2024-07-18T11:19:33.464000+00:00
Original source
I don't see that in your diff. Also, I don't think you can do that, compile a script on one state and run it on another. Unless you use lua_dump
Archived author: Foe • Posted: 2024-07-18T11:19:42.702000+00:00
Original source
You can
Archived author: Tea • Posted: 2024-07-18T11:19:58.649000+00:00
Original source
https://github.com/ElunaLuaEngine/Eluna/...r.cpp#L245
Archived author: Foe • Posted: 2024-07-18T11:20:03.883000+00:00
Original source
That's how the system works already, this change just makes the precompile step async
Archived author: Tea • Posted: 2024-07-18T11:20:16.317000+00:00
Original source
thats your lua_dump right there
Archived author: Foe • Posted: 2024-07-18T11:20:21.599000+00:00
Original source
Yep
Archived author: chipzz • Posted: 2024-07-18T11:21:01.945000+00:00
Original source
Right so lua_dump is safe
Archived author: Foe • Posted: 2024-07-18T11:24:03.805000+00:00
Original source
It's a shame that luabind didn't get received well on Arc, it was definitely an improvement over luahyparc