Files
ForeverCore/src/server/game
Karrz1 2a406a4de0 Core: build no object update packets for bot sessions
A bot session has no client: BotSession::SendPacket throws every packet
away. The server still built a create, values, out of range or destroy
block for each bot that sees an object, for every changed object, every map
update. On a bot realm nearly every player in view is a bot, so a 40 player
raid wrote each changing unit about 40 times per step for nobody.

With Bots.SkipClientPackets = 1 (default) those blocks are not built for a
bot: BaseEntity::BuildFieldsUpdate, SendUpdateToPlayer, DestroyForPlayer,
SendOutOfRangeForPlayer, Player::UpdateVisibilityOf, VisibleNotifier and
SendInitialVisiblePackets return before writing anything for it. The
player's client guid list (HaveAtClient) is still kept exactly as before, so
group, spell and visibility rules see no difference. Human players are not
touched. 0 builds them as before, so the same build can be timed both ways
with .reload config.
2026-11-15 08:31:27 +00:00
..
2026-01-29 00:22:24 +01:00
2025-10-10 16:21:55 +02:00