mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:49:05 +02:00
Messing around
This commit is contained in:
parent
73ac38a6a6
commit
d406e52d71
2 changed files with 8 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
#include <platform/Profiler.h>
|
#include <platform/Profiler.h>
|
||||||
|
|
||||||
#include "scripting/RenderScriptingInterface.h"
|
#include "scripting/RenderScriptingInterface.h"
|
||||||
|
#include "LODManager.h"
|
||||||
|
|
||||||
PerformanceManager::PerformanceManager()
|
PerformanceManager::PerformanceManager()
|
||||||
{
|
{
|
||||||
|
@ -68,6 +69,8 @@ void PerformanceManager::applyPerformancePreset(PerformanceManager::PerformanceP
|
||||||
RenderScriptingInterface::getInstance()->setShadowsEnabled(true);
|
RenderScriptingInterface::getInstance()->setShadowsEnabled(true);
|
||||||
qApp->getRefreshRateManager().setRefreshRateProfile(RefreshRateManager::RefreshRateProfile::REALTIME);
|
qApp->getRefreshRateManager().setRefreshRateProfile(RefreshRateManager::RefreshRateProfile::REALTIME);
|
||||||
|
|
||||||
|
// DependencyManager::get<LODManager>()->setWorldDetailQuality()
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case PerformancePreset::MID:
|
case PerformancePreset::MID:
|
||||||
RenderScriptingInterface::getInstance()->setRenderMethod(RenderScriptingInterface::RenderMethod::DEFERRED);
|
RenderScriptingInterface::getInstance()->setRenderMethod(RenderScriptingInterface::RenderMethod::DEFERRED);
|
||||||
|
|
5
scripts/developer/utilities/render/lodWindow.js
Normal file
5
scripts/developer/utilities/render/lodWindow.js
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
var window = Desktop.createWindow(Script.resolvePath('./lod.qml'), {
|
||||||
|
title: "LOD Setup",
|
||||||
|
presentationMode: Desktop.PresentationMode.NATIVE,
|
||||||
|
size: {x: 350, y: 500}
|
||||||
|
});
|
Loading…
Reference in a new issue