[DiscordArchive] Where in TrinityCore would I find the main handler code regarding what is displayed/hidden based on
[DiscordArchive] Where in TrinityCore would I find the main handler code regarding what is displayed/hidden based on
Archived author: Nix • Posted: 2023-01-02T18:29:47.220000+00:00
Original source
There is a ton of processing going into generating messages for when an object appears to a client, those needs caching if you want to spawn hundreds without choking
Archived author: robinsch • Posted: 2023-01-02T18:29:50.045000+00:00
Original source
Then you haven't profiled a TC with 18K objects and 10K players.
Archived author: robinsch • Posted: 2023-01-02T18:29:59.489000+00:00
Original source
Archived author: robinsch • Posted: 2023-01-02T18:30:50.595000+00:00
Original source
But yeah for 99% of the projects it should not matter
Archived author: Nix • Posted: 2023-01-02T18:31:35.758000+00:00
Original source
If you see a correlation between number of players entering a zone/phase and performance degradation then that would probably more than likely be pointing to 2 things.
1. You're inefficiently looping and updating (For example lack of multi threading or updating too often or not properly spreading updates out across frames)
2. You have a lot of network related work to do (In this case this is 100% part of it)
Archived author: Nix • Posted: 2023-01-02T18:33:00.998000+00:00
Original source
Which to be fair, TC suffer from both
Archived author: robinsch • Posted: 2023-01-02T18:33:02.741000+00:00
Original source
It's just the amount of active objects you have in the grid, since back a few years ago we used the same technique to have multiple "worlds".
Archived author: Nix • Posted: 2023-01-02T18:33:26.151000+00:00
Original source
Yeah, in the bigger picture 18k objects and 10k players is not a big deal
Archived author: Nix • Posted: 2023-01-02T18:33:34.357000+00:00
Original source
but using TC I can imagine it is a struggle
Archived author: ACHERAX • Posted: 2023-01-02T18:34:58.646000+00:00
Original source
I am not sure I'll ever run into these issues, but I hope I will someday lol