iliadsh / RavenM

The RavenM Multiplayer Mod
MIT License
105 stars 14 forks source link

Outbound data chokes with high bot counts #2

Closed iliadsh closed 2 years ago

iliadsh commented 2 years ago

Even with compression and increasing the limit allowed by SteamNetSock, having 100+ bots will make the host send over 140kB/s. This is brutal, especially with the host acting as the relay, and eventually causes the send buffers to fill up, disconnecting the clients.

The Actor state packet should likely be reworked to send only important data like positions & rotations, and have updates like shooting, etc. to only be sent when their state changes.

iliadsh commented 2 years ago

Should be fixed with the actor state protocol update.