From 39385d15ee728ba306aeee8c6f0b20360952eda8 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Tue, 29 Jan 2019 19:23:41 -0600 Subject: [PATCH] Reduce server CPU usage by limiting framerate --- Assets/Mirror/Runtime/NetworkManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Mirror/Runtime/NetworkManager.cs b/Assets/Mirror/Runtime/NetworkManager.cs index 82cf335d3..ea89cea5b 100644 --- a/Assets/Mirror/Runtime/NetworkManager.cs +++ b/Assets/Mirror/Runtime/NetworkManager.cs @@ -82,6 +82,7 @@ public virtual void Awake() // headless mode? then start the server if (SystemInfo.graphicsDeviceType == GraphicsDeviceType.Null && startOnHeadless) { + Application.targetFrameRate = 60; StartServer(); } }