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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user