don't do idle process and painting if we're shutting down the application

This commit is contained in:
ZappoMan 2015-02-24 15:57:34 -08:00
parent 8757600a5e
commit 89f7f2da2e

View file

@ -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