[DiscordArchive] What changes?
[DiscordArchive] What changes?
Archived author: Foe • Posted: 2022-05-28T22:00:10.564000+00:00
Original source
Register packet event is registered to a specific packet, register player event is registered to every single player Adding on top of that on heal and on damage, it would flood the event handler pretty quickly for a higher population server
Archived author: Foe • Posted: 2022-05-28T22:00:46.607000+00:00
Original source
Before handling something like that, Eluna should be multithreaded
Archived author: Foe • Posted: 2022-05-28T22:01:09.963000+00:00
Original source
The delay in world update would be pretty crazy
Archived author: Honey • Posted: 2022-05-28T22:01:54.521000+00:00
Original source
Oh right, the register line needs an opcode, thanks for clarifying.
Archived author: Honey • Posted: 2022-05-28T22:02:25.354000+00:00
Original source
Wouldn't that be an incredible pile of work and close to a full re write?
Archived author: Foe • Posted: 2022-05-28T22:02:55.772000+00:00
Original source
It's a big amount of work, it would break most backwards compatibility, and the way scripts are handled would change quite a lot ♂️
Archived author: Foe • Posted: 2022-05-28T22:03:04.566000+00:00
Original source
Not close to a full rewrite though
Archived author: Foe • Posted: 2022-05-28T22:03:50.019000+00:00
Original source
What we currently do is create a single Lua state in the world update thread, the proper way to do this would be to create a Lua state per map
Archived author: Honey • Posted: 2022-05-28T22:04:14.441000+00:00
Original source
So, in a perfect world, we'd have a thread per map for the core and one for Eluna, too
Oh and worker threads ofc...
Archived author: Foe • Posted: 2022-05-28T22:04:29.559000+00:00
Original source
Just need a state per map really