MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / CallWindowRealtimeTickEvent

Function CallWindowRealtimeTickEvent

src/window.cpp:3088–3094  ·  view source on GitHub ↗

* Dispatch OnRealtimeTick event over all windows */

Source from the content-addressed store, hash-verified

3086 * Dispatch OnRealtimeTick event over all windows
3087 */
3088void CallWindowRealtimeTickEvent(uint delta_ms)
3089{
3090 _realtime_tick_start = std::chrono::steady_clock::now();
3091 for (Window *w : Window::Iterate()) {
3092 w->OnRealtimeTick(delta_ms);
3093 }
3094}
3095
3096/** Update various of window-related information on a regular interval. */
3097static const IntervalTimer<TimerWindow> window_interval(std::chrono::milliseconds(30), [](auto) {

Callers 1

UpdateWindowsFunction · 0.85

Calls 2

nowClass · 0.85
OnRealtimeTickMethod · 0.45

Tested by

no test coverage detected