4 ms·
Wouldn't it be better to use WebRTC data channels for communication between instances of the game? If I'm not mistaken, that's even based on UDP. Of course, tha
by mwcampbell 5y ago
Wouldn't it be better to use WebRTC data channels for communication between instances of the game? If I'm not mistaken, that's even based on UDP. Of course, that wouldn't show off the new Cloudflare features nearly as much, though I guess Workers and Durable Objects could still be used to help the clients establish the WebRTC connection.
- kentonv 5y agoFor Doom specifically, which uses a P2P networking model, yes, that probably would have been technically superior. It would have taken more work, though -- this demo was thrown together pretty fast. Durable Objects could still have been used for setup, yes. Most modern games use a client/server model, in which case the possible role of Durable Objects is a lot clearer.