Sometimes I send a packet where I only set like 3 fields out of 9. (Client)->(Server) and then respond with sending a packet using all 9 fields to the client('s) (Server)->(Client)
Does it send all the fields even when they’re null/-1?
I don’t want to be sending unneccessary bytes.
If this is the case. Would I be better off overriding the send methods and make it do something like this?
void sendPacketTCP(Packet packet){
sendTCP(packet.getOpcode());
sendTCP(packet.getPayload());
}
I choose for kryonet because easy and understandable to setup.