Increasing player support to 254

meganerd

Newbie
Jul 19, 2026
1
1
30
Howdy,

Not sure if this goes to the modding or general but here goes-

I am not previously involved with this community however someone asked me if I could raise the player cap for this project.
I am an MMO developer and dense multiplayer simulations are something I have a history with in terms of architecture.

The changes: Add high-density multiplayer support by MeganerdDev · Pull Request #1348 · coop-deluxe/sm64coopdx

Overview
  • Raised the multiplayer limit from 16 to as many as 254 players.
  • Changed roster synchronization to support large lobbies without overflowing one packet.
  • Player joining is more reliable when roster packets arrive late, duplicated, or out of order.
  • Made disconnects and reconnects update the player list correctly.
  • Added stronger packet safety checks to reduce crashes from invalid or oversized network data.
  • Prevents incompatible original and modified clients from connecting.
  • Added server performance reporting

Do we need a colloquial name to refer to this change? If so please dub/cite the change as dense-254

Some metrics
Sun Jul 19 13:05:43 2026 [00] [INFO] network_metrics.c: [dense-net] peer local=36 global=36 connected=1 tx=11551 wire=1300.0 KiB raw=5369.1 KiB
Sun Jul 19 13:05:53 2026 [00] [INFO] network_metrics.c: [dense-net] report 390.7s peers=37 tx=704378 packets 78.09 MiB wire 321.32 MiB raw ratio=0.243 204.6 KiB/s compress=13240.733 ms
Sun Jul 19 13:05:53 2026 [00] [INFO] network_metrics.c: [dense-net] rx=92811 packets 4.68 MiB wire 13.95 MiB raw 12.3 KiB/s decompress=86.603 ms broadcast=26930 avg-fanout=24.75 drops=0 send-errors=0 rx-errors=0

What the metrics tell us: 96 to 128 is reasonable to host from my machine, CPU is the bottleneck not network fanout
64 players is ~7,600 packets/s with ~11 Mbit/s, consuming 14% of 1 Ryzen 5600x CPU core
(projections)
96 players ~17,400 packets/s ~25 Mbit/s 33%
128 players ~31,000 packets/s ~45 Mbit/s 58%
160 players ~48,500 packets/s ~71 Mbit/s 91%
254 players ~123,000 packets/s ~179 Mbit/s 231%
 
  • Like
Reactions: Ehsu

Users who are viewing this thread