Fixed #11278 / FPS limit changes on iOS

This commit is contained in:
Anuken
2025-10-12 17:13:00 +09:00
parent 197d8c4060
commit 872939454f
4 changed files with 14 additions and 11 deletions

View File

@@ -214,7 +214,7 @@ public abstract class ClientLauncher extends ApplicationCore implements Platform
public void update(){
PerfCounter.update.begin();
int targetfps = Core.settings.getInt("fpscap", 120);
int targetfps = ios ? 0 : Core.settings.getInt("fpscap", 120);
boolean changed = lastTargetFps != targetfps && lastTargetFps != -1;
boolean limitFps = targetfps > 0 && targetfps <= 240;