Reduce server CPU usage by limiting framerate

This commit is contained in:
Paul Pacheco 2019-01-29 19:23:41 -06:00
parent 1b915fbffb
commit 39385d15ee

View File

@ -82,6 +82,7 @@ public virtual void Awake()
// headless mode? then start the server
if (SystemInfo.graphicsDeviceType == GraphicsDeviceType.Null && startOnHeadless)
{
Application.targetFrameRate = 60;
StartServer();
}
}