iOS uncap framerate option

This commit is contained in:
Anuken 2025-10-09 22:40:52 +09:00
parent a0cf5b7265
commit 2daf41c7d7
2 changed files with 8 additions and 0 deletions

View file

@ -1277,6 +1277,7 @@ setting.smoothcamera.name = Smooth Camera
setting.detach-camera.name = Free Camera
setting.detach-camera.description = If enabled, the camera moves independently of the player unit.\nThis setting can be assigned a hotkey.
setting.vsync.name = VSync
setting.iosuncapfps.name = High Refresh Rate
setting.pixelate.name = Pixelate
setting.minimap.name = Show Minimap
setting.coreitems.name = Display Core Items

View file

@ -412,6 +412,13 @@ public class SettingsMenuDialog extends BaseDialog{
return s + "%";
});
if(ios){
graphics.checkPref("iosuncapfps", false, b -> Core.graphics.setPreferredFPS(b ? 0 : 60));
if(Core.settings.getBool("iosuncapfps")){
Core.graphics.setPreferredFPS(0);
}
}
if(!mobile){
graphics.checkPref("vsync", true, b -> Core.graphics.setVSync(b));
graphics.checkPref("fullscreen", false, b -> {