[DiscordArchive] When you say multistate, is that 1 Lua stack per map ?
[DiscordArchive] When you say multistate, is that 1 Lua stack per map ?
Archived author: jackpoz • Posted: 2024-02-15T15:45:40.462000+00:00
Original source
When you say multistate, is that 1 Lua stack per map ?
Archived author: Whomadeit • Posted: 2024-02-15T15:55:17.465000+00:00
Original source
Lua itself doesn't support multithreading natively. However, you can use external libraries or frameworks like Lua Lanes or Lua coroutines to achieve concurrent execution. These libraries provide ways to work with multiple threads or coroutines, allowing for some level of concurrency in Lua programs.
Archived author: jackpoz • Posted: 2024-02-15T15:56:28.122000+00:00
Original source
But you can use multiple Lua stacks, each single threaded
Archived author: Foe • Posted: 2024-02-15T15:59:58.401000+00:00
Original source
Yes, one state per map
Archived author: Bench • Posted: 2024-02-15T16:00:30.827000+00:00
Original source
Quit it, ChatGPT
Archived author: jackpoz • Posted: 2024-02-15T16:00:32.476000+00:00
Original source
So then you can remove forcing 1 map thread when Eluna is enabled ?
Archived author: Foe • Posted: 2024-02-15T16:01:17.617000+00:00
Original source
We removed the singleton implementation, the forced map update thread override and removed all locking from the Lua states since the mutex is no longer needed
Archived author: Foe • Posted: 2024-02-15T16:02:08.102000+00:00
Original source
Yep, it's done, it's only in place if you toggle compatibility mode for a transitional period
Archived author: jackpoz • Posted: 2024-02-15T16:02:15.759000+00:00
Original source
That's very good something I discussed some months ago
Archived author: jackpoz • Posted: 2024-02-15T16:02:35.501000+00:00
Original source
It's what makes the most sense