mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-09-11 10:55:45 -05:00
[+] TargetFrameRate
This commit is contained in:
@@ -14,9 +14,13 @@ namespace AquaMai.Mods.Tweaks;
|
||||
""")]
|
||||
public class LockFrameRate
|
||||
{
|
||||
[ConfigEntry(
|
||||
zh: "目标帧率,不建议修改。除非你知道你在做什么")]
|
||||
public static readonly int targetFrameRate = 60;
|
||||
|
||||
public static void OnBeforePatch()
|
||||
{
|
||||
Application.targetFrameRate = 60;
|
||||
Application.targetFrameRate = targetFrameRate;
|
||||
QualitySettings.vSyncCount = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user