mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix: Don't set framerate in host mode
This commit is contained in:
parent
a2cc14bd20
commit
4644bc4b77
@ -235,7 +235,7 @@ public virtual void ConfigureServerFrameRate()
|
|||||||
// * if not in Editor (it doesn't work in the Editor)
|
// * if not in Editor (it doesn't work in the Editor)
|
||||||
// * if not in Host mode
|
// * if not in Host mode
|
||||||
#if !UNITY_EDITOR
|
#if !UNITY_EDITOR
|
||||||
if (!NetworkClient.active)
|
if (!NetworkClient.active && IsHeadless())
|
||||||
{
|
{
|
||||||
Application.targetFrameRate = serverTickRate;
|
Application.targetFrameRate = serverTickRate;
|
||||||
Debug.Log("Server Tick Rate set to: " + Application.targetFrameRate + " Hz.");
|
Debug.Log("Server Tick Rate set to: " + Application.targetFrameRate + " Hz.");
|
||||||
|
Loading…
Reference in New Issue
Block a user