5 ms·
What was your experience with WebRTC? I read some people tried to use it for multiplayer, but the performance suffered with more than 10 players.
by k__ 7y ago
What was your experience with WebRTC?
I read some people tried to use it for multiplayer, but the performance suffered with more than 10 players.
- lxtx 7y agoOnly played it with my friends, don't think a map ever exceeded 10 players. So I can't say much about scaling - although it was a client-server model over UDP and not peer to peer networking.
- k__ 7y agoAh, so you had a WebRTC datachannel between the clients and the server?
- lxtx 7y agoBasically yes, a custom datachannel implementation. Haven't updated it lately, but it's up at https://github.com/seemk/WebUDP https://github.com/seemk/WebUDP
- k__ 7y agoPretty cool. You don't happen to have some ping comparisons betwen WebRTC and WebSockets?
- lxtx 7y agoSadly no, but I don't think there's much of a ping difference on a good network. With WebRTC (datachannels in UDP mode) you just get the benefits of UDP (or lack thereof :)).
- k__ 7y agoI see. I had the impression UDP would lower the average ping, because you wouldn't have to wait on lost packages like with TCP.