From 57bac57e3f4ff72bfa06d9c31735c1c3c725fb26 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Tue, 25 Oct 2022 13:30:41 -0400 Subject: [PATCH] adjusted TCD unserviced call delay --- coordinator/startup.lua | 2 +- scada-common/tcallbackdsp.lua | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/coordinator/startup.lua b/coordinator/startup.lua index e8717c4..83a445d 100644 --- a/coordinator/startup.lua +++ b/coordinator/startup.lua @@ -16,7 +16,7 @@ local config = require("coordinator.config") local coordinator = require("coordinator.coordinator") local renderer = require("coordinator.renderer") -local COORDINATOR_VERSION = "alpha-v0.5.10" +local COORDINATOR_VERSION = "alpha-v0.5.11" local print = util.print local println = util.println diff --git a/scada-common/tcallbackdsp.lua b/scada-common/tcallbackdsp.lua index 339d1b5..98d9b6f 100644 --- a/scada-common/tcallbackdsp.lua +++ b/scada-common/tcallbackdsp.lua @@ -9,7 +9,10 @@ local tcallbackdsp = {} local registry = {} -local UNSERVICED_CALL_DELAY = util.TICK_TIME_S +---@todo possibly move this to a config file? +-- maximum 5 ticks late (0.25 seconds)
+-- heavily modded servers and large multiplayer servers tend to significantly slow tick times, so nominal 0.05s ticks are unlikely +local UNSERVICED_CALL_DELAY = util.TICK_TIME_S * 5 -- request a function to be called after the specified time ---@param time number seconds