From ad1baee93728d7b078cd1c7488736516ff5fda35 Mon Sep 17 00:00:00 2001 From: p2r3 Date: Sun, 31 Aug 2025 00:42:56 +0300 Subject: [PATCH] extend total network timeout to 15 seconds (leaving 5s for keepalive) --- include/globals.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/globals.h b/include/globals.h index a0e3be0..004def6 100644 --- a/include/globals.h +++ b/include/globals.h @@ -54,8 +54,9 @@ // are made, but in much smaller portions. #define DISK_SYNC_INTERVAL 15000000 // Time in microseconds to spend waiting for data transmission before -// timing out. (default = 5s) -#define NETWORK_TIMEOUT_TIME 5000000 +// timing out. Default is 15s, which leaves 5s to prevent starving other +// clients from Keep Alive packets. +#define NETWORK_TIMEOUT_TIME 15000000 // If defined, scales the frequency at which player movement updates are // broadcast based on the amount of players, reducing overhead for higher // player counts. For very many players, makes movement look jittery.