Skip to content

Commit c72dede

Browse files
update
removing some changes I made while testing out extrapolating past the target. adjusted comment.
1 parent a4fbcbb commit c72dede

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.unity.netcode.gameobjects/Components/NetworkTransform.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,8 +1020,8 @@ private void OnNetworkStateChanged(NetworkTransformState oldState, NetworkTransf
10201020
m_LastReceivedState = newState;
10211021

10221022
// Set the current local tick and wait until the next tick before we end
1023-
// this state's extrapolation.
1024-
m_LastReceivedState.EndExtrapolationTick = NetworkManager.LocalTime.Tick + 2;
1023+
// this state's potential of extrapolating past the target value
1024+
m_LastReceivedState.EndExtrapolationTick = NetworkManager.LocalTime.Tick;
10251025
}
10261026
}
10271027

0 commit comments

Comments
 (0)