From 92310b4c9e231a25648d6e797bff60e7f45cd9b5 Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Fri, 24 Feb 2023 22:51:14 -0500 Subject: [PATCH] bufferTimeMultiplierForClamping = 1f --- Assets/Mirror/Core/NetworkManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Mirror/Core/NetworkManager.cs b/Assets/Mirror/Core/NetworkManager.cs index 6ed121af2..ea5fdcd58 100644 --- a/Assets/Mirror/Core/NetworkManager.cs +++ b/Assets/Mirror/Core/NetworkManager.cs @@ -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