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,7 +310,13 @@ QString LODManager::getLODFeedbackText() {
void LODManager::loadSettings() {
setDesktopLODTargetFPS(desktopLODDecreaseFPS.get());
setHMDLODTargetFPS(hmdLODDecreaseFPS.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() {

View file

@ -317,7 +317,7 @@ void OffscreenSurface::loadInternal(const QUrl& qmlSource,
{
PROFILE_RANGE(app, "new QQmlComponent");
qmlComponent = new QQmlComponent(getSurfaceContext()->engine(), finalQmlSource, QQmlComponent::PreferSynchronous);
}
}
if (qmlComponent->isLoading()) {
connect(qmlComponent, &QQmlComponent::statusChanged, this,
[=](QQmlComponent::Status) { finishQmlLoad(qmlComponent, targetContext, parent, callback); });