From d8e91f30530b7bdc419ec43361aa54da156d7afb Mon Sep 17 00:00:00 2001 From: mischa <16416509+vis2k@users.noreply.github.com> Date: Thu, 11 Jul 2024 14:11:41 +0200 Subject: [PATCH] NetworkManager.sendInterval for convenience --- Assets/Mirror/Core/NetworkManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/Mirror/Core/NetworkManager.cs b/Assets/Mirror/Core/NetworkManager.cs index ef21e6c9f..c553624dc 100644 --- a/Assets/Mirror/Core/NetworkManager.cs +++ b/Assets/Mirror/Core/NetworkManager.cs @@ -41,6 +41,9 @@ public class NetworkManager : MonoBehaviour [Tooltip("Server / Client send rate per second.\nUse 60-100Hz for fast paced games like Counter-Strike to minimize latency.\nUse around 30Hz for games like WoW to minimize computations.\nUse around 1-10Hz for slow paced games like EVE.")] [FormerlySerializedAs("serverTickRate")] public int sendRate = 60; + + // sendInterval := 1 / sendRate for convenience + public float sendInterval => 1f / sendRate; // Deprecated 2023-11-25 // Using SerializeField and HideInInspector to self-correct for being