diff --git a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs index 1691a641e..5fce61240 100644 --- a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs +++ b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs @@ -511,20 +511,14 @@ void UpdateServerBaseline(double localTime) byte frameCount = (byte)Time.frameCount; // perf: only access Time.frameCount once! if (syncPosition && syncRotation) { - // send snapshot without timestamp. - // receiver gets it from batch timestamp to save bandwidth. RpcServerToClientBaseline_PositionRotation(frameCount, position, rotation); } else if (syncPosition) { - // send snapshot without timestamp. - // receiver gets it from batch timestamp to save bandwidth. RpcServerToClientBaseline_Position(frameCount, position); } else if (syncRotation) { - // send snapshot without timestamp. - // receiver gets it from batch timestamp to save bandwidth. RpcServerToClientBaseline_Rotation(frameCount, rotation); } @@ -611,8 +605,6 @@ void UpdateServerDelta(double localTime) // -> Vector3? and Quaternion? nullables takes more bandwidth if (syncPosition && syncRotation) { - // send snapshot without timestamp. - // receiver gets it from batch timestamp to save bandwidth. // unreliable redundancy to make up for potential message drops RpcServerToClientDelta_PositionRotation(lastSerializedBaselineTick, position, rotation); if (unreliableRedundancy) @@ -620,8 +612,6 @@ void UpdateServerDelta(double localTime) } else if (syncPosition) { - // send snapshot without timestamp. - // receiver gets it from batch timestamp to save bandwidth. // unreliable redundancy to make up for potential message drops RpcServerToClientDelta_Position(lastSerializedBaselineTick, position); if (unreliableRedundancy) @@ -629,8 +619,6 @@ void UpdateServerDelta(double localTime) } else if (syncRotation) { - // send snapshot without timestamp. - // receiver gets it from batch timestamp to save bandwidth. // unreliable redundancy to make up for potential message drops RpcServerToClientDelta_Rotation(lastSerializedBaselineTick, rotation); if (unreliableRedundancy) @@ -712,20 +700,14 @@ void UpdateClientBaseline(double localTime) byte frameCount = (byte)Time.frameCount; // perf: only access Time.frameCount once! if (syncPosition && syncRotation) { - // send snapshot without timestamp. - // receiver gets it from batch timestamp to save bandwidth. CmdClientToServerBaseline_PositionRotation(frameCount, position, rotation); } else if (syncPosition) { - // send snapshot without timestamp. - // receiver gets it from batch timestamp to save bandwidth. CmdClientToServerBaseline_Position(frameCount, position); } else if (syncRotation) { - // send snapshot without timestamp. - // receiver gets it from batch timestamp to save bandwidth. CmdClientToServerBaseline_Rotation(frameCount, rotation); } @@ -802,8 +784,6 @@ void UpdateClientDelta(double localTime) // -> Vector3? and Quaternion? nullables takes more bandwidth if (syncPosition && syncRotation) { - // send snapshot without timestamp. - // receiver gets it from batch timestamp to save bandwidth. // unreliable redundancy to make up for potential message drops CmdClientToServerDelta_PositionRotation(lastSerializedBaselineTick, position, rotation); if (unreliableRedundancy) @@ -812,8 +792,6 @@ void UpdateClientDelta(double localTime) } else if (syncPosition) { - // send snapshot without timestamp. - // receiver gets it from batch timestamp to save bandwidth. // unreliable redundancy to make up for potential message drops CmdClientToServerDelta_Position(lastSerializedBaselineTick, position); if (unreliableRedundancy) @@ -821,8 +799,6 @@ void UpdateClientDelta(double localTime) } else if (syncRotation) { - // send snapshot without timestamp. - // receiver gets it from batch timestamp to save bandwidth. // unreliable redundancy to make up for potential message drops CmdClientToServerDelta_Rotation(lastSerializedBaselineTick, rotation); if (unreliableRedundancy)