1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 18:32:35 +01:00

Change: Queue content ID information requests. (#13990)

Instead of requesting content one ID at a time, queue them up to be requested in one go.

* Avoids sending many small requests.
* Avoids sending requests for content which is likely to be arriving anyway.
This commit is contained in:
Peter Nelson
2025-04-12 12:50:36 +01:00
committed by GitHub
parent c29ef5cfc2
commit 1744156149
3 changed files with 55 additions and 15 deletions

View File

@@ -43,8 +43,8 @@ void TimeoutTimer<TimerWindow>::Elapsed(TimerWindow::TElapsed delta)
this->storage.elapsed += delta;
if (this->storage.elapsed >= this->period) {
this->callback();
this->fired = true;
this->callback();
}
}