mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 05:50:19 +02:00
don't reset the idleTimer if the interval hasn't changed
This commit is contained in:
parent
db5e8c72ee
commit
7cee5f3ce5
1 changed files with 4 additions and 1 deletions
|
@ -1837,8 +1837,11 @@ void Application::idle() {
|
|||
// perpetuity and not expect events to get backed up.
|
||||
|
||||
static const int IDLE_TIMER_DELAY_MS = 0;
|
||||
int desiredInterval = _glWidget->isThrottleRendering() ? THROTTLED_IDLE_TIMER_DELAY : IDLE_TIMER_DELAY_MS;
|
||||
|
||||
idleTimer->start(_glWidget->isThrottleRendering() ? THROTTLED_IDLE_TIMER_DELAY : IDLE_TIMER_DELAY_MS);
|
||||
if (idleTimer->interval() != desiredInterval) {
|
||||
idleTimer->start(desiredInterval);
|
||||
}
|
||||
}
|
||||
|
||||
// check for any requested background downloads.
|
||||
|
|
Loading…
Reference in a new issue