mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Capping the LOD MAnager target FPS by the refresh rate current rate
This commit is contained in:
parent
c19fd71969
commit
4e1b01177f
1 changed files with 10 additions and 2 deletions
|
@ -351,10 +351,18 @@ float LODManager::getHMDLODTargetFPS() const {
|
|||
}
|
||||
|
||||
float LODManager::getLODTargetFPS() const {
|
||||
auto refreshRateFPS = qApp->getRefreshRateManager().getActiveRefreshRate();
|
||||
auto lodTargetFPS = getDesktopLODTargetFPS();
|
||||
if (qApp->isHMDMode()) {
|
||||
return getHMDLODTargetFPS();
|
||||
lodTargetFPS = getHMDLODTargetFPS();
|
||||
}
|
||||
|
||||
// if RefreshRate is slower than LOD target then it becomes the true LOD target
|
||||
if (lodTargetFPS > refreshRateFPS) {
|
||||
return refreshRateFPS;
|
||||
} else {
|
||||
return lodTargetFPS;
|
||||
}
|
||||
return getDesktopLODTargetFPS();
|
||||
}
|
||||
|
||||
void LODManager::setWorldDetailQuality(float quality) {
|
||||
|
|
Loading…
Reference in a new issue