Dedicated/LAN server: send tab-list latency every 601 ticks, as vanilla

PlayerList.tick broadcasts UPDATE_LATENCY once ++sendAllPlayerInfoIn > 600;
the hub sent it every 100 ticks. The extra updates landed in the
dedicated_server harness's respawn window and failed it at random.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-17 11:51:51 +02:00
parent 98dc7b17b7
commit c3e5a20488
+3 -1
View File
@@ -936,7 +936,9 @@ impl Hub {
.iter()
.map(|g| (g.uuid, g.latency.load(Ordering::Relaxed)))
.collect();
if self.ticks.is_multiple_of(100) && !latencies.is_empty() {
// PlayerList.tick: UPDATE_LATENCY once `++sendAllPlayerInfoIn > 600`,
// so on the 601st tick, then every 601.
if self.ticks.is_multiple_of(601) && !latencies.is_empty() {
let entries = latencies
.iter()
.map(|(uuid, latency)| play::PlayerInfo {