[DiscordArchive] But do you intend to spawn update threads from the map update thread then, to parallelize the map up
[DiscordArchive] But do you intend to spawn update threads from the map update thread then, to parallelize the map up
Archived author: Foe • Posted: 2023-09-30T10:17:38.111000+00:00
Original source
But do you intend to spawn update threads from the map update thread then, to parallelize the map update workload by phase id?
Archived author: Foe • Posted: 2023-09-30T10:19:49.978000+00:00
Original source
Or do you intend to just compartmentalize the entities so the overall amount of entities to check against per update tick is lower?
Archived author: Foe • Posted: 2023-09-30T10:21:50.214000+00:00
Original source
Regardless of which it'll probably have some performance benefits in some places, but generally the places that cause these issues are things like capital cities where everyone is in the same phase
Archived author: Foe • Posted: 2023-09-30T10:23:36.914000+00:00
Original source
If you then intend to lower the overall update loop time by automatically phasing players in these areas, I can see issues with things like groups and generic phase handling popping up
Archived author: Pandaros • Posted: 2023-09-30T10:30:56.847000+00:00
Original source
the update threads and count will be dynamic, when a player is added to the map it will check to add a thread
Archived author: Pandaros • Posted: 2023-09-30T10:31:13.792000+00:00
Original source
again when a player is removed
Archived author: Pandaros • Posted: 2023-09-30T10:31:43.423000+00:00
Original source
on update it will modulus by thread count and distibute the phases to the update threads
Archived author: Pandaros • Posted: 2023-09-30T10:32:15.198000+00:00
Original source
if there are no threads the update will function as it does in place
Archived author: Pandaros • Posted: 2023-09-30T10:33:16.658000+00:00
Original source
yes, the plan is to have large cities with different phases in extreme cases
Archived author: Pandaros • Posted: 2023-09-30T10:33:53.842000+00:00
Original source
wich is why the config can be different for every map id