Disable light scattering on android by default

This commit is contained in:
Deve 2021-01-21 23:04:36 +01:00
parent 3b02643db3
commit b064c38f09

View File

@ -55,16 +55,17 @@ void override_default_params_for_mobile()
UserConfigParams::m_max_texture_size = 256; UserConfigParams::m_max_texture_size = 256;
UserConfigParams::m_high_definition_textures = false; UserConfigParams::m_high_definition_textures = false;
// Disable advanced lighting by default to make the game playable // Enable advanced lighting only for android >= 8
UserConfigParams::m_dynamic_lights = false; UserConfigParams::m_dynamic_lights = (SDL_GetAndroidSDKVersion() >= 26);
// Disable light scattering for better performance
UserConfigParams::m_light_scatter = false;
// Enable multitouch race GUI // Enable multitouch race GUI
UserConfigParams::m_multitouch_draw_gui = true; UserConfigParams::m_multitouch_draw_gui = true;
#ifdef IOS_STK
// Default 30 fps for battery saving // Default 30 fps for battery saving
UserConfigParams::m_swap_interval = 2; UserConfigParams::m_swap_interval = 2;
#endif
#ifdef ANDROID #ifdef ANDROID
// For usage in StringUtils::getUserAgentString // For usage in StringUtils::getUserAgentString
@ -168,12 +169,6 @@ void override_default_params_for_mobile()
Log::info("MainAndroid", "Render scale: %f", Log::info("MainAndroid", "Render scale: %f",
(float)UserConfigParams::m_scale_rtts_factor); (float)UserConfigParams::m_scale_rtts_factor);
} }
// Enable advanced lighting for android >= 8
if (SDL_GetAndroidSDKVersion() >= 26)
{
UserConfigParams::m_dynamic_lights = true;
}
#endif #endif
// Enable screen keyboard // Enable screen keyboard