// CLASS HEADER
#include <dali/internal/adaptor/tizen-wayland/tizen-wearable/watch-application-impl.h>
+#include <dali/internal/system/common/environment-variables.h>
namespace Dali
{
namespace Adaptor
{
+namespace
+{
+
+unsigned int GetEnvWatchRenderRefreshRate()
+{
+ const char* envVariable = std::getenv( DALI_WATCH_REFRESH_RATE );
+
+ return envVariable ? std::atoi( envVariable ) : 2u; // Default 30 fps
+}
+
+} // unnamed namespace
+
WatchApplicationPtr WatchApplication::New(
int* argc,
char **argv[],
{
Application::OnInit();
- Dali::Adaptor::Get().SetRenderRefreshRate( 2 ); // make 30 fps for watch applications
+ Dali::Adaptor::Get().SetRenderRefreshRate( GetEnvWatchRenderRefreshRate() );
mState = INITIALIZED;
}
#define DALI_REFRESH_RATE "DALI_REFRESH_RATE"
+#define DALI_WATCH_REFRESH_RATE "DALI_WATCH_REFRESH_RATE"
+
#define DALI_ENV_MULTI_SAMPLING_LEVEL "DALI_MULTI_SAMPLING_LEVEL"
#define DALI_ENV_MAX_TEXTURE_SIZE "DALI_MAX_TEXTURE_SIZE"
const unsigned int ADAPTOR_MAJOR_VERSION = 1;
const unsigned int ADAPTOR_MINOR_VERSION = 4;
-const unsigned int ADAPTOR_MICRO_VERSION = 5;
+const unsigned int ADAPTOR_MICRO_VERSION = 6;
const char * const ADAPTOR_BUILD_DATE = __DATE__ " " __TIME__;
#ifdef DEBUG_ENABLED
Name: dali-adaptor
Summary: The DALi Tizen Adaptor
-Version: 1.4.5
+Version: 1.4.6
Release: 1
Group: System/Libraries
License: Apache-2.0 and BSD-3-Clause and MIT