Vote count: -1 For a real-time multiplayer game, the server is sending binary messages to the client with Websocket. The first byte (uint8) of a message would be the "packet ID". Example: packet 1 to "update entity": x, y, score, name in the next bytes. But, to optimize the bandwidth, I would like to send only values that change between 2 frames. Example (all values changed): packet 2 to "update entity position": x, y packet 3 to "update entity score": score packet 4 to "update entity name": nam...
ادامه مطلب