From 97ca6d70fa73e87cfb6497012bf2496bee1f976e Mon Sep 17 00:00:00 2001 From: David Rowe Date: Thu, 3 Jul 2014 17:15:46 -0700 Subject: [PATCH] Fixed performance timer scope --- interface/src/Application.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 0c469102cc..96fee69bda 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -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(); + } } }