Improve stability in packet-server mode

Use buffers reported by clients so they can better check their own conditions when determining how to stabilize when outpacing the host.
This commit is contained in:
Boondorl 2025-06-30 14:46:17 -04:00 committed by Ricardo Luís Vaz Silva
commit 492c83cf2c
3 changed files with 21 additions and 9 deletions

View file

@ -11,7 +11,7 @@ enum ENetConstants
BACKUPTICS = 35 * 5, // Remember up to 5 seconds of data.
MAXTICDUP = 3,
MAXSENDTICS = 35 * 1, // Only send up to 1 second of data at a time.
STABILITYTICS = 12,
STABILITYTICS = 17,
LOCALCMDTICS = (BACKUPTICS * MAXTICDUP),
MAX_MSGLEN = 14000,
};