force low detail on oculus first run

This commit is contained in:
SamGondelman 2018-11-06 15:58:35 -08:00
parent dd96881724
commit e20aeb28eb
2 changed files with 9 additions and 2 deletions

View file

@ -14,6 +14,7 @@
#include <SettingHandle.h>
#include <OctreeUtils.h>
#include <Util.h>
#include <shared/GlobalAppProperties.h>
#include "Application.h"
#include "ui/DialogsManager.h"
@ -309,8 +310,14 @@ QString LODManager::getLODFeedbackText() {
void LODManager::loadSettings() {
setDesktopLODTargetFPS(desktopLODDecreaseFPS.get());
Setting::Handle<bool> firstRun { Settings::firstRun, true };
if (qApp->property(hifi::properties::OCULUS_STORE).toBool() && firstRun.get()) {
const float LOD_LOW_QUALITY_LEVEL = 0.25f;
setHMDLODTargetFPS(LOD_LOW_QUALITY_LEVEL * LOD_MAX_LIKELY_HMD_FPS);
} else {
setHMDLODTargetFPS(hmdLODDecreaseFPS.get());
}
}
void LODManager::saveSettings() {
desktopLODDecreaseFPS.set(getDesktopLODTargetFPS());