[Performance] Reduce UpdateWho S2S Chatter to World (#4792)

* [Performance] Reduce UpdateWho S2S chatter

* Add rule to change this dynamically
This commit is contained in:
Chris Miles
2025-03-29 14:56:32 -05:00
committed by GitHub
parent 235e59a2d8
commit 30fddcc5a0
2 changed files with 7 additions and 1 deletions
+6 -1
View File
@@ -500,6 +500,8 @@ int main(int argc, char **argv)
}
Timer InterserverTimer(INTERSERVER_TIMER); // does MySQL pings and auto-reconnect
Timer UpdateWhoTimer(RuleI(Zone, UpdateWhoTimer) * 1000); // updates who list every 2 minutes
#ifdef EQPROFILE
#ifdef PROFILE_DUMP_TIME
Timer profile_dump_timer(PROFILE_DUMP_TIME * 1000);
@@ -647,7 +649,10 @@ int main(int argc, char **argv)
InterserverTimer.Start();
database.ping();
content_db.ping();
entity_list.UpdateWho();
if (UpdateWhoTimer.Check()) {
UpdateWhoTimer.SetTimer(RuleI(Zone, UpdateWhoTimer) * 1000); // in-case it was changed
entity_list.UpdateWho();
}
}
};