4 ms·
What do you mean by "small binary commands"?
by viewer5 6y ago
What do you mean by "small binary commands"?
- edoceo 6y agoUse websocket in binary mode, pack operations into tiny messages.
- redka 6y agoactually binary websockets won't do in this case since the underlying protocol is still TCP with automatic retransmission mechanism which kills performance for very fast-paced games. You have to use WebRTC in that case
- redka 6y agoInstead of cramming ecoded json into the data channels, like you'd with websockets, you can build binary buffers with all the data that has to be communicated between server and client. For example movement commands like up/down/left/right alongside some flags like isJumping can be packed into a singe uInt8
- deleted 6y ago[deleted]
- vvanders 6y agoYup, delta compression and potential visibility sets are also a huge win as well. The best thing is to design your gameplay to be "predictive", that's how we had ~300 player games like Subspace over 28.8/56k way back in the day.