[DiscordArchive] Hey guys, sorry to barge in. But why does world db on trinity (at least on this not so recent core)
[DiscordArchive] Hey guys, sorry to barge in. But why does world db on trinity (at least on this not so recent core)
Archived author: robinsch • Posted: 2023-01-12T13:30:11.366000+00:00
Original source
so the problem is kinda "solved" on the API level
Archived author: Foe • Posted: 2023-01-12T13:33:48.631000+00:00
Original source
Yeah you can definitely have separate apis for the world state and the map states, personally it's more work than it's worth defining said areas, so for now at least the separation is done on the hook level
Archived author: Foe • Posted: 2023-01-12T13:34:44.592000+00:00
Original source
Everything that is threadsafe runs on the map states while everything that is unsafe runs in the world state
Archived author: Foe • Posted: 2023-01-12T13:36:00.060000+00:00
Original source
The method api is self limiting based on the objects that are available in said function calls, so I'm not worried about marking methods specifically available or unavailable
Archived author: vblanco • Posted: 2023-01-12T13:36:14.308000+00:00
Original source
the bitsquid engine did multithreading on lua
Archived author: vblanco • Posted: 2023-01-12T13:36:38.867000+00:00
Original source
their trick is that scripts could request access to stuff, and that would either allow it and continue execution, or stop the script and try a different script
Archived author: vblanco • Posted: 2023-01-12T13:37:06.022000+00:00
Original source
its not that map state had a mutex, but that an script request the map-edit api, then locks that and does whatever operations it wants with the exclusive access
Archived author: Foe • Posted: 2023-01-12T13:37:49.080000+00:00
Original source
That's also an idea, ideally we'd have one Lua state per update thread to reduce the overhead, but that's simply not possible with TCs design
Archived author: Foe • Posted: 2023-01-12T13:38:08.778000+00:00
Original source
Not like the Lua state has a massive resource footprint to begin with
Archived author: Foe • Posted: 2023-01-12T13:39:36.745000+00:00
Original source
So it's easier to just have the users define which state has access to which script based on the map id and say screw it to things like cross state communication