Optimize mobile rendering and extend live-client launch options
This commit is contained in:
@@ -243,6 +243,9 @@ int CPythonSystem::GetShadowLevel()
|
||||
|
||||
void CPythonSystem::SetShadowLevel(unsigned int level)
|
||||
{
|
||||
#if defined(__ANDROID__)
|
||||
level = MIN(level, 2); // Cap to SHADOW_GROUND_AND_SOLO on mobile
|
||||
#endif
|
||||
m_Config.iShadowLevel = MIN(level, 5);
|
||||
CPythonBackground::instance().RefreshShadowLevel();
|
||||
}
|
||||
@@ -306,7 +309,11 @@ void CPythonSystem::SetDefaultConfig()
|
||||
|
||||
m_Config.bDecompressDDS = 0;
|
||||
m_Config.bSoftwareTiling = 0;
|
||||
#if defined(__ANDROID__)
|
||||
m_Config.iShadowLevel = 2; // SHADOW_GROUND_AND_SOLO
|
||||
#else
|
||||
m_Config.iShadowLevel = 3;
|
||||
#endif
|
||||
m_Config.bViewChat = true;
|
||||
m_Config.bAlwaysShowName = DEFAULT_VALUE_ALWAYS_SHOW_NAME;
|
||||
m_Config.dungeonTrack = false;
|
||||
|
||||
Reference in New Issue
Block a user