[DiscordArchive] is it not possible to restrict item creation to the world thread instead?
[DiscordArchive] is it not possible to restrict item creation to the world thread instead?
Archived author: Telegrill • Posted: 2025-01-29T15:59:02.076000+00:00
Original source
is it not possible to restrict item creation to the world thread instead?
Archived author: Tea • Posted: 2025-01-29T15:59:13.928000+00:00
Original source
no
Archived author: Telegrill • Posted: 2025-01-29T15:59:33.857000+00:00
Original source
I guess it has to do with the fact that the spell effect happens in map thread, so there's no way to move it from there?
Archived author: Telegrill • Posted: 2025-01-29T16:01:41.876000+00:00
Original source
i mean if you use a task queuing system to defer item creation requests from map threads to the world thread that would soften the risk, but if you're goal is to really make it thread-safe, you can use std::atomic, but it might cause some performance overhead