From 4644bc4b7730d4aefae833fb59264230026bb4d0 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Tue, 9 Apr 2019 05:50:02 -0500 Subject: [PATCH] fix: Don't set framerate in host mode --- Assets/Mirror/Runtime/NetworkManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Runtime/NetworkManager.cs b/Assets/Mirror/Runtime/NetworkManager.cs index 4e1d91a23..0b783a574 100644 --- a/Assets/Mirror/Runtime/NetworkManager.cs +++ b/Assets/Mirror/Runtime/NetworkManager.cs @@ -235,7 +235,7 @@ public virtual void ConfigureServerFrameRate() // * if not in Editor (it doesn't work in the Editor) // * if not in Host mode #if !UNITY_EDITOR - if (!NetworkClient.active) + if (!NetworkClient.active && IsHeadless()) { Application.targetFrameRate = serverTickRate; Debug.Log("Server Tick Rate set to: " + Application.targetFrameRate + " Hz.");