Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] I see how that is a downside for projects with intensive use of Eluna.

[DiscordArchive] I see how that is a downside for projects with intensive use of Eluna.

[DiscordArchive] I see how that is a downside for projects with intensive use of Eluna.

Pages (2): Previous 1 2
rektbyfaith
Administrator
0
08-20-2022, 10:31 AM
#11
Archived author: Honey • Posted: 2022-08-20T10:31:33.537000+00:00
Original source

So as a workaround i would need to run one map-state as the master and have all maps report to that one.

If a player loots the object it would first request permission from the master state to announce the winner/give a reward.
rektbyfaith
08-20-2022, 10:31 AM #11

Archived author: Honey • Posted: 2022-08-20T10:31:33.537000+00:00
Original source

So as a workaround i would need to run one map-state as the master and have all maps report to that one.

If a player loots the object it would first request permission from the master state to announce the winner/give a reward.

rektbyfaith
Administrator
0
08-20-2022, 10:32 AM
#12
Archived author: Honey • Posted: 2022-08-20T10:32:39.548000+00:00
Original source

Bad example cause for the hide and seek thing there would be only one object In a single map.
rektbyfaith
08-20-2022, 10:32 AM #12

Archived author: Honey • Posted: 2022-08-20T10:32:39.548000+00:00
Original source

Bad example cause for the hide and seek thing there would be only one object In a single map.

rektbyfaith
Administrator
0
08-20-2022, 10:32 AM
#13
Archived author: Honey • Posted: 2022-08-20T10:32:44.572000+00:00
Original source

But you get the idea.
rektbyfaith
08-20-2022, 10:32 AM #13

Archived author: Honey • Posted: 2022-08-20T10:32:44.572000+00:00
Original source

But you get the idea.

rektbyfaith
Administrator
0
08-20-2022, 10:37 AM
#14
Archived author: Foe • Posted: 2022-08-20T10:37:21.031000+00:00
Original source

See that's the entire issue with async data and having to assume that all values are equally valid at all times Lets say you have both 1st, 2nd and 3rd place for your hide and seek, and its an incremental value in your global cache.

If a player on map 0 and a player on map 1 both receive the item on the same tick, you'd have to assume both players got 1st place since there was nothing in the cache, even though one player technically got it before the other, and the cache would be stale since both threads wouldn't have written to the global cache yet.

Both threads would then update the cache, and the last executing thread would overwrite the first executing threads value.

So all in all this comes down to how you design your script, what data is valid to be stored in a global cache, and how you drive your events based on that data
rektbyfaith
08-20-2022, 10:37 AM #14

Archived author: Foe • Posted: 2022-08-20T10:37:21.031000+00:00
Original source

See that's the entire issue with async data and having to assume that all values are equally valid at all times Lets say you have both 1st, 2nd and 3rd place for your hide and seek, and its an incremental value in your global cache.

If a player on map 0 and a player on map 1 both receive the item on the same tick, you'd have to assume both players got 1st place since there was nothing in the cache, even though one player technically got it before the other, and the cache would be stale since both threads wouldn't have written to the global cache yet.

Both threads would then update the cache, and the last executing thread would overwrite the first executing threads value.

So all in all this comes down to how you design your script, what data is valid to be stored in a global cache, and how you drive your events based on that data

rektbyfaith
Administrator
0
08-20-2022, 10:38 AM
#15
Archived author: Foe • Posted: 2022-08-20T10:38:50.122000+00:00
Original source

Multiple states will be more complex, but the performance benefit vastly outweighs the complexity, it's all down to how we design scripts properly
rektbyfaith
08-20-2022, 10:38 AM #15

Archived author: Foe • Posted: 2022-08-20T10:38:50.122000+00:00
Original source

Multiple states will be more complex, but the performance benefit vastly outweighs the complexity, it's all down to how we design scripts properly

rektbyfaith
Administrator
0
08-20-2022, 10:44 AM
#16
Archived author: Honey • Posted: 2022-08-20T10:44:18.213000+00:00
Original source

Allright, so in the end it's still all doable.
Thanks for the detailed explanation!

While we're talking about performance. Are there any news about LuaJit?
rektbyfaith
08-20-2022, 10:44 AM #16

Archived author: Honey • Posted: 2022-08-20T10:44:18.213000+00:00
Original source

Allright, so in the end it's still all doable.
Thanks for the detailed explanation!

While we're talking about performance. Are there any news about LuaJit?

Pages (2): Previous 1 2
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)