Opened 8 years ago
Last modified 3 years ago
#4210 new defect
Increase the observer limit to 4096
Reported by: | elexis | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | Network | Keywords: | |
Cc: | Patch: |
Description
Today two of the best lobby players had a match and the game actually ran into the 16 client observerlimit.
It should be possible to host games with a practically unlimited amount of clients / observers. enet supports 4096 clients at most. Instead of hardcoding the limit, it could just use max(32, settingsValue) when calling enet_host_create
(thus not having to allocate for 4096 peers in advance).
The downside is that it means a running server won't support more than 32 observers if the game was started with a limit of at most 32.
Perhaps the memory allocated by enet is so few that 4096 can be allocated, but I doubt it.
There could also be a default.cfg
boolean entry that will make the server allocate 4096 clients instead of max(32, limit).
In 18719: