mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 16:50:43 +02:00
Ensure we continue calling idle when minimized
This commit is contained in:
parent
e99683fdcf
commit
1aee8f1f4d
1 changed files with 13 additions and 3 deletions
|
@ -2751,6 +2751,16 @@ bool Application::event(QEvent* event) {
|
|||
static_cast<LambdaEvent*>(event)->call();
|
||||
return true;
|
||||
|
||||
// Explicit idle keeps the idle running at a lower interval, but without any rendering
|
||||
// see (windowMinimizedChanged)
|
||||
case Event::Idle:
|
||||
{
|
||||
float nsecsElapsed = (float)_lastTimeUpdated.nsecsElapsed();
|
||||
_lastTimeUpdated.start();
|
||||
idle(nsecsElapsed);
|
||||
}
|
||||
return true;
|
||||
|
||||
case Event::Present:
|
||||
if (!_renderRequested) {
|
||||
float nsecsElapsed = (float)_lastTimeUpdated.nsecsElapsed();
|
||||
|
|
Loading…
Reference in a new issue