File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
com.unity.netcode.gameobjects/Runtime/Components Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3862,6 +3862,10 @@ private void UpdateInterpolation()
38623862 // Smooth dampening specific:
38633863 // We clamp between tick rate and bit beyond the tick rate but not 2x tick rate (we predict 2x out)
38643864 var minDeltaTime = m_CachedNetworkManager . LocalTime . FixedDeltaTime ;
3865+ // The 1.666667f value is a "magic" number tht lies between the FixedDeltaTime and 2 * the averaged
3866+ // frame update. Since smooth dampening is most useful for Rigidbody motion, the physics update
3867+ // frequency is roughly 60hz (59.x?) which 2x that value as frequency is typically close to 32-33ms.
3868+ // Look within the Interpolator.Update for smooth dampening to better understand the above.
38653869 var maxDeltaTime = ( 1.666667f * m_CachedNetworkManager . ServerTime . FixedDeltaTime ) ;
38663870
38673871 // Now only update the interpolators for the portions of the transform being synchronized
You can’t perform that action at this time.
0 commit comments