mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
iOS uncap framerate option
This commit is contained in:
parent
a0cf5b7265
commit
2daf41c7d7
2 changed files with 8 additions and 0 deletions
|
|
@ -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 -> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue