From c352c354ece4ffe6f9642b4e588787089a09dcff Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Fri, 24 Feb 2023 22:52:18 -0500 Subject: [PATCH] bufferTimeMultiplierForClamping cmd line arg --- Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs b/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs index 10a51cb83..76cca0b07 100644 --- a/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs +++ b/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs @@ -160,6 +160,9 @@ void ProcessCmdLineArgs() if (arg.StartsWith("/r:", StringComparison.InvariantCultureIgnoreCase)) if (int.TryParse(arg.Remove(0, 3), out sendRate)) Application.targetFrameRate = sendRate; + + if (arg.StartsWith("/m:", StringComparison.InvariantCultureIgnoreCase)) + float.TryParse(arg.Remove(0, 3), out bufferTimeMultiplierForClamping); } } #endif