mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 04:57:23 +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
|
@ -1472,6 +1472,10 @@ void Application::checkFPS() {
|
||||||
void Application::idle() {
|
void Application::idle() {
|
||||||
PerformanceTimer perfTimer("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
|
// 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
|
// details if we're in ExtraDebugging mode. However, the ::update() and it's subcomponents will show their timing
|
||||||
// details normally.
|
// details normally.
|
||||||
|
|
Loading…
Reference in a new issue