summaryrefslogtreecommitdiffstats
path: root/platform/ios/display_server_ios.mm
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/display_server_ios.mm')
-rw-r--r--platform/ios/display_server_ios.mm6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/ios/display_server_ios.mm b/platform/ios/display_server_ios.mm
index 2561c1c095..60da16ae8c 100644
--- a/platform/ios/display_server_ios.mm
+++ b/platform/ios/display_server_ios.mm
@@ -443,7 +443,11 @@ int DisplayServerIOS::screen_get_dpi(int p_screen) const {
}
float DisplayServerIOS::screen_get_refresh_rate(int p_screen) const {
- return [UIScreen mainScreen].maximumFramesPerSecond;
+ float fps = [UIScreen mainScreen].maximumFramesPerSecond;
+ if ([NSProcessInfo processInfo].lowPowerModeEnabled) {
+ fps = 60;
+ }
+ return fps;
}
float DisplayServerIOS::screen_get_scale(int p_screen) const {