6 ms·
I got 2 to 4 orders of magnitude improvements across the board last weekend just by rolling my own binary protocol over ws, with world deltas. Didn't even bothe
by synthmeat 9y ago
I got 2 to 4 orders of magnitude improvements across the board last weekend just by rolling my own binary protocol over ws, with world deltas. Didn't even bother to space-partition it to clients.
Using JSON as serialization format for real-time multiplayer game is being very silly, unless it's just a prototype.
- jackmott 9y agoyes json is crazy. protocol buffers are ok. but custom bit packed format is still helpful for twitch games
- auspex 9y agoUsing JSON for a realtime game is extremely bad. Each request must not only be parsed (json-> object -> json) but each serialization requires a byte by byte encoding pass. Meaning that you're going to use a lot of CPU. Binary is a much better choice.