From c3e5a20488295b9a959883e73896a8021dd921d2 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Sat, 17 Oct 2026 11:51:51 +0200 Subject: [PATCH] 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 --- crates/horizon-client/src/lan/hub.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/src/lan/hub.rs b/crates/horizon-client/src/lan/hub.rs index 83f745dd4..8fcc41329 100644 --- a/crates/horizon-client/src/lan/hub.rs +++ b/crates/horizon-client/src/lan/hub.rs @@ -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 {