World timers and actor Tick run fast against wall time in a headless NullRHI game
Section titled “World timers and actor Tick run fast against wall time in a headless NullRHI game”- Status: Current engine behavior with a verified test workaround.
- Engine: ue6-main
61e2877e1, Linux x86_64, Epic clang 23.1.5. - Context: Standalone UE6 Linux Development package. The check uses a native actor tick.
- Prerequisites: Launch with
-nullrhion a host fast enough to exceed the engine’s minimum world frame interval.
Symptom
Section titled “Symptom”A configured 360 s game cycle at 60× should take about six wall seconds when world and wall time advance at the same rate. The uncapped NullRHI launch logged DUSK t=240 only 1.011 wall seconds after the scale command, then DAWN 0.503 s later. The sample logged DAY_NIGHT_FRAMES avg_ms=0.13 frames=39162 wall_s=5.000 scale=60.
Smallest example / reproduction
Section titled “Smallest example / reproduction”Advance a simulation counter by the DeltaSeconds passed to AActor::Tick. Log a marker at a known simulated interval and compare engine log timestamps to the expected wall time. In the prototype use this command in the packaged game with a fixture whose LightSeconds=240 and DarkSeconds=120. With $P and $WRAP set as in the README:
"$WRAP" nullrhi-clock timeout -k 10s 30s "$P/Out/Linux/CoopZero.sh" \ -nullrhi -unattended -nosound -DEFGameINI="$P/Saved/step04-short-cycle.ini" \ '-ExecCmds=coop.timescale 60,delay 7 quit' -abslog="$P/Saved/nullrhi-clock.log"Solution
Section titled “Solution”For wall-time smoke assertions, add t.MaxFPS 120 ahead of the test command in -ExecCmds. Test fixtures that compare simulated timestamps can use the clock’s own state.
Why it works
Section titled “Why it works”Engine/Config/BaseGame.ini defaults MinUndilatedFrameTime to 0.0005 s, corresponding to 2,000 ticks per second. AWorldSettings::FixupDeltaSeconds applies that minimum to the world tick. An uncapped headless process can tick more frequently with each delta clamped up. The slower cap keeps the measured frame interval above the minimum.
Verified
Section titled “Verified”- Evidence level: Runs in packaged build.
- How: Adding
t.MaxFPS 120reproducedDUSK t=2404.000 s afterDAY_NIGHT_TIMESCALE scale=60, thenDAWN2.000 s later. The sample averaged 8.33 ms with 600 intervals in five seconds. See Coop ZeroSaved/step04-packaged-config-capped.log:1057–1062. - Date / by: 2026-11-25, not recorded.
Limits and assumptions
Section titled “Limits and assumptions”The workaround is for a test that compares against wall time. Each title’s world settings and startup load can change that relationship.