[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: chipzz • Posted: 2024-07-18T11:02:35.804000+00:00
Original source
But I don't see any lua_State's or lua API calls in your diff?
Archived author: chipzz • Posted: 2024-07-18T11:02:53.759000+00:00
Original source
But maybe you're doing things in a different level?
Archived author: chipzz • Posted: 2024-07-18T11:04:28.396000+00:00
Original source
Anyway, if you follow the above approach, you need to call luaL_loadstring on the same lua_State as the one you're gonna run your script on. And lua_State's aren't thread-safe.
Archived author: chipzz • Posted: 2024-07-18T11:04:54.497000+00:00
Original source
Or are you just loading the script text (ie doing only the IO) on the separate thread?
Archived author: jackpoz • Posted: 2024-07-18T11:08:21.384000+00:00
Original source
Lua states are per map and each map updates its own state only
Archived author: jackpoz • Posted: 2024-07-18T11:08:53.137000+00:00
Original source
It's the step before that is on a different thread, to prepare the scripts
Archived author: chipzz • Posted: 2024-07-18T11:09:42.608000+00:00
Original source
Ah ok multiple lua_State's, I (and the WoW client) use only one
Archived author: chipzz • Posted: 2024-07-18T11:10:34.509000+00:00
Original source
(Well technically that's not entirely true since warden and the mini-games also use lua, but those aren't accessible from the UI lua)
Archived author: jackpoz • Posted: 2024-07-18T11:10:52.427000+00:00
Original source
It's one of the improvements of Eluna in the past years. Before it forced TC to be single threaded
Archived author: jackpoz • Posted: 2024-07-18T11:11:11.428000+00:00
Original source
This is just serverside btw