NetworkStateSynchronization.ReliableDeltaCompressed 可靠的增量压缩
NetworkStateSynchronization.ReliableDeltaCompressed
Description描述
All packets are sent reliable and ordered.
所有数据包可靠有序的发送。
Delta compression is used to send only the difference between the last sent state and the current state. For example if you synchronize a Transform. Scale x, y, z is most likely going to keep the same value. Unity compares the state received by the client to the new state, if it is changed 1 bit and the data will be sent. If it didn't change only a single bit will be sent. When Unity detects that nothing has changed since the last state, no data will be sent at all.
增量压缩用于只发送最后发送状态和当前状态直接的不同。例如,如果你同步一个Transform,缩放x,y,z最有可能会保持相同的值。Unity比较状态,将接收客户端新的状态,如果被改变1 bit,数据将被发送。如果不改变,只有单一的bit被发送。当Unity检测自最后状态没有什么被改变,所有数据将不发送。