Fix max FPS order for iOS STK
This commit is contained in:
parent
fd10286f9d
commit
ae32b8fc61
@ -922,7 +922,7 @@ namespace UserConfigParams
|
||||
"Quality of anisotropic filtering (usual values include 2-4-8-16; 0 to disable)") );
|
||||
|
||||
PARAM_PREFIX IntUserConfigParam m_swap_interval
|
||||
PARAM_DEFAULT( IntUserConfigParam(0, "swap_interval",
|
||||
PARAM_DEFAULT( IntUserConfigParam(0, "swap-interval",
|
||||
&m_graphics_quality,
|
||||
"Swap interval for vsync: 0 = disabled, 1 = full") );
|
||||
PARAM_PREFIX BoolUserConfigParam m_motionblur
|
||||
|
@ -66,11 +66,6 @@ void override_default_params_for_mobile()
|
||||
// Enable multitouch race GUI
|
||||
UserConfigParams::m_multitouch_draw_gui = true;
|
||||
|
||||
#ifdef IOS_STK
|
||||
// Default 30 fps for battery saving (only used in iOS)
|
||||
UserConfigParams::m_swap_interval = 2;
|
||||
#endif
|
||||
|
||||
#ifdef ANDROID
|
||||
// For usage in StringUtils::getUserAgentString
|
||||
if (SDL_IsAndroidTV())
|
||||
|
@ -311,9 +311,9 @@ float MainLoop::getLimitedDt()
|
||||
// For iOS devices most at locked at 60, for new iPad Pro supports 120
|
||||
// which is currently m_max_fps
|
||||
const int max_fps =
|
||||
UserConfigParams::m_swap_interval == 2 ? 30 :
|
||||
UserConfigParams::m_swap_interval == 2 ? UserConfigParams::m_max_fps :
|
||||
UserConfigParams::m_swap_interval == 1 ? 60 :
|
||||
UserConfigParams::m_max_fps;
|
||||
30;
|
||||
#else
|
||||
const int max_fps = (irr_driver->isRecording() &&
|
||||
UserConfigParams::m_limit_game_fps )
|
||||
|
@ -234,9 +234,9 @@ void OptionsScreenVideo::init()
|
||||
#ifdef IOS_STK
|
||||
//I18N: In the video options, maximum frame per second
|
||||
getWidget("vsync_label")->setText(_("Maximum FPS"));
|
||||
vsync->addLabel("120");
|
||||
vsync->addLabel("60");
|
||||
vsync->addLabel("30");
|
||||
vsync->addLabel("60");
|
||||
vsync->addLabel("120");
|
||||
vsync->setValue(UserConfigParams::m_swap_interval);
|
||||
#else
|
||||
vsync->addLabel(_("Disabled"));
|
||||
|
Loading…
Reference in New Issue
Block a user