chore(engine): halve default per-IP player cap to 200

MAX_PLAYERS_PER_IP still overrides; this only lowers the default memory
backstop introduced after the 2026-07-21 swarm OOM.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
max bittkerandClaude Fable 5 committed 2026-08-11 11:58:58 -04:00
1 parent afd498e293
commit 2f8d26a40b
1 file changed
+1 -1
+1 -1
View File
@@ -135,7 +135,7 @@ class World {
// concurrent players allowed per source IP. A 1100-account swarm from two IPs OOM'd
// the 4GB prod box on 2026-07-21; the engine otherwise accepts up to 2048 players.
private static readonly PLAYER_MAX_PER_IP: number = Number(process.env.MAX_PLAYERS_PER_IP ?? 400);
private static readonly PLAYER_MAX_PER_IP: number = Number(process.env.MAX_PLAYERS_PER_IP ?? 200);
private static readonly PLAYER_SLOT_AUDITRATE: number = 100; // 30s at 300ms ticks