4 ms·
When will it finally be possible to use UDP protocol within browsers? TCP got way too big overhead. A multiplayer engine in which you send 30 messages per seco
by holoduke 3y ago
When will it finally be possible to use UDP protocol within browsers?
TCP got way too big overhead. A multiplayer engine in which you send 30 messages per second for 128 users is what i need. Not possible with websockets withput having super computers.
- ermir 3y agoWebRTC makes this possible, but server implementations are quite difficult to set up. I recommend you check out Pion (Golang) as a good implementation that's also easy to deploy and integrate with Node (presumably your game server is implemented in JS).
- hnav 3y agoWhy does TCP have so much overhead? 30 messages that you don't batch is 30 packets either with TCP or UDP.
- holoduke 3y agoTCP got a much higher ping delay. For real fps like multiplayer experience you definitely need UDP. Packet loss should be ignored, not retried.
- meheleventyone 3y agoThis isn’t as true anymore but it’s definitely best practice to build on UDP. Games built on UDP normally have several different policies including the ability to send messages that guarantee delivery even if packets get lost.
- hahn-kev 3y agoHTTP3 is your friend here