mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
bufferTimeMultiplierForClamping = 1f
This commit is contained in:
parent
0d461a8836
commit
92310b4c9e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user