From 89f7f2da2e93df6469d425ff01d7dd38b05043c8 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Tue, 24 Feb 2015 15:57:34 -0800 Subject: [PATCH] don't do idle process and painting if we're shutting down the application --- interface/src/Application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 998e2065dc..537d3d2a75 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1471,6 +1471,10 @@ void Application::checkFPS() { void Application::idle() { PerformanceTimer perfTimer("idle"); + + if (_aboutToQuit) { + return; // bail early, nothing to do here. + } // Normally we check PipelineWarnings, but since idle will often take more than 10ms we only show these idle timing // details if we're in ExtraDebugging mode. However, the ::update() and it's subcomponents will show their timing