mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 20:36:49 +02:00
Fixed performance timer scope
This commit is contained in:
parent
8b04a9c8b6
commit
97ca6d70fa
1 changed files with 7 additions and 5 deletions
|
@ -683,11 +683,13 @@ void Application::paintGL() {
|
||||||
_rearMirrorTools->render(true);
|
_rearMirrorTools->render(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
PerformanceTimer perfTimer("paintGL/renderOverlay");
|
{
|
||||||
// PrioVR will only work if renderOverlay is called, calibration is connected to Application::renderingOverlay()
|
PerformanceTimer perfTimer("paintGL/renderOverlay");
|
||||||
_applicationOverlay.renderOverlay(true);
|
// PrioVR will only work if renderOverlay is called, calibration is connected to Application::renderingOverlay()
|
||||||
if (Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) {
|
_applicationOverlay.renderOverlay(true);
|
||||||
_applicationOverlay.displayOverlayTexture();
|
if (Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) {
|
||||||
|
_applicationOverlay.displayOverlayTexture();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue