mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
don't do idle process and painting if we're shutting down the application
This commit is contained in:
parent
8757600a5e
commit
89f7f2da2e
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue