mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:57:30 +02:00
Ensure we continue calling idle when minimized
Conflicts: interface/src/Application.cpp
This commit is contained in:
parent
02363e06de
commit
009df176c5
1 changed files with 10 additions and 0 deletions
|
@ -2742,6 +2742,16 @@ bool Application::event(QEvent* event) {
|
||||||
static_cast<LambdaEvent*>(event)->call();
|
static_cast<LambdaEvent*>(event)->call();
|
||||||
return true;
|
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:
|
case Event::Present:
|
||||||
if (!_renderRequested) {
|
if (!_renderRequested) {
|
||||||
float nsecsElapsed = (float)_lastTimeUpdated.nsecsElapsed();
|
float nsecsElapsed = (float)_lastTimeUpdated.nsecsElapsed();
|
||||||
|
|
Loading…
Reference in a new issue