#Technical Suggestion: Switch from WebSockets to WebRTC for UDP connectivity.

4 messages · Page 1 of 1 (latest)

uneven anchor
#

Hello!

I've been loving your game and I wanted to share a suggestion that I believe could improve its performance greatly. I'm not entirely sure if Discord is the right place to share this feedback, so please let me know if there's a better way to reach out.

Currently, BAPBAP uses WebSockets for its transport layer. While WebSockets are a great choice for certain use cases, I believe that WebRTC, utilizing the UDP protocol, would be better suited for gaming. This is because UDP is a faster and more efficient protocol for real-time applications, such as online multiplayer games. To further illustrate this point, I'd like to share a video that explains the benefits of using UDP in gaming: https://www.youtube.com/watch?v=ZEEBsq3eQmg (note: not my video)

As a developer with experience in networking, I've created a library called netlib (https://github.com/poki/netlib) for P2P connections using WebRTC. Although I'm not suggesting that you use netlib for BAPBAP (since netlib is p2p and BAPBAP is not), I wanted to share this as a way to establish my credibility on the subject. 😅

I understand that switching the underlying transport layer may not be a trivial task, but I'm confident that using WebRTC would result in a more responsive and smoother gaming experience. I would be more than happy to help or provide any support needed to do some experimenting.

Please feel free to reach out if you have any questions or would like to discuss this suggestion further.

Thank you for your time, and keep up the great work on BAPBAP!

Cheer,
—Kaji (maining Anna and always building full Vamp)

teal hedge
#

i totally understood what you said

cinder cipher
#

@brave wing would understand

brave wing
# uneven anchor Hello! I've been loving your game and I wanted to share a suggestion that I bel...

WebRTC Is not well supported and there is a new technology that will be widely supported called WebTransport https://developer.mozilla.org/en-US/docs/Web/API/WebTransport which is made for Client <-> Server communication.

Currently if you want available access for most players, it is still not good idea to go UDP yet. Most schools has older browsers and so, that does not support WebRTC or WebTransport