From e9ab2b8f27db38a81f114c89fd0d66308c76d1c9 Mon Sep 17 00:00:00 2001 From: SamGondelman Date: Fri, 20 Jul 2018 16:48:15 -0700 Subject: [PATCH] enable LOD manager on android --- interface/src/Application.cpp | 2 -- interface/src/LODManager.h | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 311c08b858..0da3d9445e 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -5803,9 +5803,7 @@ void Application::update(float deltaTime) { bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings); PerformanceWarning warn(showWarnings, "Application::update()"); -#if !defined(Q_OS_ANDROID) updateLOD(deltaTime); -#endif // TODO: break these out into distinct perfTimers when they prove interesting { diff --git a/interface/src/LODManager.h b/interface/src/LODManager.h index 8f88da63a8..8cae179f1e 100644 --- a/interface/src/LODManager.h +++ b/interface/src/LODManager.h @@ -19,7 +19,11 @@ #include #include +#ifdef Q_OS_ANDROID +const float DEFAULT_DESKTOP_LOD_DOWN_FPS = 10.0f; +#else const float DEFAULT_DESKTOP_LOD_DOWN_FPS = 30.0f; +#endif const float DEFAULT_HMD_LOD_DOWN_FPS = 34.0f; const float DEFAULT_DESKTOP_MAX_RENDER_TIME = (float)MSECS_PER_SECOND / DEFAULT_DESKTOP_LOD_DOWN_FPS; // msec const float DEFAULT_HMD_MAX_RENDER_TIME = (float)MSECS_PER_SECOND / DEFAULT_HMD_LOD_DOWN_FPS; // msec