mPanGestureSmoothingAmount(-1.0f),
mPanMinimumDistance(-1),
mPanMinimumEvents(-1),
- mGlesCallTime(0),
+ mGlesCallTime( 0 ),
mWindowWidth( 0 ),
mWindowHeight( 0 ),
- mThreadingMode( ThreadingMode::SEPARATE_UPDATE_RENDER ),
+ mThreadingMode( ThreadingMode::COMBINED_UPDATE_RENDER ),
+ mRenderRefreshRate( 1 ),
+ mGlesCallAccumulate( false ),
mLogFunction( NULL )
{
ParseEnvironmentOptions();
return mGlesCallTime;
}
+bool EnvironmentOptions::GetGlesCallAccumulate() const
+{
+ return mGlesCallAccumulate;
+}
+
const std::string& EnvironmentOptions::GetWindowName() const
{
return mWindowName;
return mThreadingMode;
}
+unsigned int EnvironmentOptions::GetRenderRefreshRate() const
+{
+ return mRenderRefreshRate;
+}
+
bool EnvironmentOptions::PerformanceServerRequired() const
{
return ( ( GetPerformanceStatsLoggingOptions() > 0) ||
mGlesCallTime = glesCallTime;
}
+ int glesCallAccumulate( 0 );
+ if ( GetIntegerEnvironmentVariable( DALI_GLES_CALL_ACCUMULATE, glesCallAccumulate ) )
+ {
+ mGlesCallAccumulate = glesCallAccumulate != 0;
+ }
+
int windowWidth(0), windowHeight(0);
if ( GetIntegerEnvironmentVariable( DALI_WINDOW_WIDTH, windowWidth ) && GetIntegerEnvironmentVariable( DALI_WINDOW_HEIGHT, windowHeight ) )
{
}
}
}
+
+ int renderRefreshRate(0);
+ if ( GetIntegerEnvironmentVariable( DALI_REFRESH_RATE, renderRefreshRate ) )
+ {
+ // Only change it if it's valid
+ if( renderRefreshRate > 1 )
+ {
+ mRenderRefreshRate = renderRefreshRate;
+ }
+ }
}
} // Adaptor