bufferTimeMultiplierForClamping = 1f

This commit is contained in:
MrGadget1024 2023-02-24 22:51:14 -05:00
parent 0d461a8836
commit 92310b4c9e

View File

@ -42,7 +42,7 @@ public class NetworkManager : MonoBehaviour
public int sendRate = 30;
[Tooltip("Mirror tries to maintain 2x send interval (= 1 / Send Rate) time behind server/client. If we are way out of sync by a multiple of this buffer, we simply clamp time to within this buffer.")]
public float bufferTimeMultiplierForClamping = 2;
public float bufferTimeMultiplierForClamping = 1f;
// Deprecated 2022-10-31
[Obsolete("NetworkManager.serverTickRate was renamed to sendRate because that's what it configures for both server & client now.")]
@ -169,7 +169,7 @@ public virtual void OnValidate()
spawnPrefabs.Remove(playerPrefab);
}
if (bufferTimeMultiplierForClamping < 1) bufferTimeMultiplierForClamping = 1;
//if (bufferTimeMultiplierForClamping < 1) bufferTimeMultiplierForClamping = 1;
}
// virtual so that inheriting classes' Reset() can call base.Reset() too