Skip to content

Commit

Permalink
[+] TargetFrameRate
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Jan 25, 2025
1 parent b7cb68e commit 0d92362
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions AquaMai.Mods/Tweaks/LockFrameRate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ 强制设置帧率上限为 60 帧并关闭垂直同步
""")]
public class LockFrameRate
{
[ConfigEntry(
zh: "目标帧率,不建议修改。除非你知道你在做什么")]
public static readonly int targetFrameRate = 60;

public static void OnBeforePatch()
{
Application.targetFrameRate = 60;
Application.targetFrameRate = targetFrameRate;
QualitySettings.vSyncCount = 0;
}
}
}

0 comments on commit 0d92362

Please sign in to comment.