mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 13:12:57 +02:00
force low detail on oculus first run
This commit is contained in:
parent
dd96881724
commit
e20aeb28eb
2 changed files with 9 additions and 2 deletions
|
@ -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() {
|
||||
|
|
|
@ -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); });
|
||||
|
|
Loading…
Reference in a new issue