lucaspoffo / renet

Server/Client network library for multiplayer games with authentication and connection management made with Rust
Apache License 2.0
620 stars 65 forks source link

Questions about the `renetcode` max client limit #143

Open enderger opened 5 months ago

enderger commented 5 months ago

This may be a dumb issue (I'm quite new to networking), but I noticed that there is a seemingly arbitrary limit on the number of concurrent clients supported by renetcode. I was wondering why there would be such a limit, if there is any good workarounds that don't involve setting up a separate web server for matchmaking (perhaps using something to spin up multiple instances of the server), and if there's anything else I'm missing here.

UkoeHB commented 5 months ago

Not totally sure, but the original implementation is in C and stores a lot of stuff on the stack.

enderger commented 5 months ago

Ah, does the Renet implementation store more on the heap? If so, it may be possible to bump up the max amount of connected clients, although I presume there still will be a limit. Perhaps I’ll try using the Steam sockets for now if the number still is too low and maybe implementing my own in the future to avoid the hard UDP requirement.