diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index ad25160dd7..c7e67c4d24 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -2496,8 +2496,6 @@ static uint32_t _renderedFrameIndex { INVALID_FRAME }; void Application::idle(uint64_t now) { - PROFILE_RANGE(__FUNCTION__); - if (_aboutToQuit || _inPaint) { return; // bail early, nothing to do here. } @@ -2550,6 +2548,8 @@ void Application::idle(uint64_t now) { return; } + PROFILE_RANGE(__FUNCTION__); + // We're going to execute idle processing, so restart the last idle timer _lastTimeUpdated.start(); @@ -3140,7 +3140,7 @@ void Application::updateDialogs(float deltaTime) { void Application::update(float deltaTime) { - PROFILE_RANGE_EX(__FUNCTION__, 0xffff0000, (uint64_t)getActiveDisplayPlugin()->presentCount()); + PROFILE_RANGE_EX(__FUNCTION__, 0xffff0000, (uint64_t)_frameCount + 1); bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings); PerformanceWarning warn(showWarnings, "Application::update()");