Skip to content

Commit

Permalink
fix fps limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
BBpezsgo committed Jan 11, 2025
1 parent 8b53f25 commit 5183dd7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 9 additions & 0 deletions Assets/Mono/Common/FpsLimiter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using UnityEngine;

public class FpsLimiter : MonoBehaviour
{
void Start()
{
Application.targetFrameRate = 60;
}
}
2 changes: 0 additions & 2 deletions Assets/Mono/Server/SetupManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ void OnValidate()

public void Setup()
{
Application.targetFrameRate = 60;

World world = ConnectionManager.ServerOrDefaultWorld;

using EntityQuery unitDatabaseQ = world.EntityManager.CreateEntityQuery(typeof(UnitDatabase));
Expand Down

0 comments on commit 5183dd7

Please sign in to comment.