iOS uncap framerate option
This commit is contained in:
@@ -1277,6 +1277,7 @@ setting.smoothcamera.name = Smooth Camera
|
|||||||
setting.detach-camera.name = Free 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.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.vsync.name = VSync
|
||||||
|
setting.iosuncapfps.name = High Refresh Rate
|
||||||
setting.pixelate.name = Pixelate
|
setting.pixelate.name = Pixelate
|
||||||
setting.minimap.name = Show Minimap
|
setting.minimap.name = Show Minimap
|
||||||
setting.coreitems.name = Display Core Items
|
setting.coreitems.name = Display Core Items
|
||||||
|
|||||||
@@ -412,6 +412,13 @@ public class SettingsMenuDialog extends BaseDialog{
|
|||||||
return s + "%";
|
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){
|
if(!mobile){
|
||||||
graphics.checkPref("vsync", true, b -> Core.graphics.setVSync(b));
|
graphics.checkPref("vsync", true, b -> Core.graphics.setVSync(b));
|
||||||
graphics.checkPref("fullscreen", false, b -> {
|
graphics.checkPref("fullscreen", false, b -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user