Fixed performance timer scope

This commit is contained in:
David Rowe 2014-07-03 17:15:46 -07:00
parent 8b04a9c8b6
commit 97ca6d70fa

View file

@ -683,11 +683,13 @@ void Application::paintGL() {
_rearMirrorTools->render(true);
}
PerformanceTimer perfTimer("paintGL/renderOverlay");
// PrioVR will only work if renderOverlay is called, calibration is connected to Application::renderingOverlay()
_applicationOverlay.renderOverlay(true);
if (Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) {
_applicationOverlay.displayOverlayTexture();
{
PerformanceTimer perfTimer("paintGL/renderOverlay");
// PrioVR will only work if renderOverlay is called, calibration is connected to Application::renderingOverlay()
_applicationOverlay.renderOverlay(true);
if (Menu::getInstance()->isOptionChecked(MenuOption::UserInterface)) {
_applicationOverlay.displayOverlayTexture();
}
}
}