Sample a recorded SimulationFrame timeline at an arbitrary time t,
linearly interpolating unit positions between the two bracketing frames so
playback is smooth regardless of the record rate. Cumulative destruction
(buildings destroyed, walls broken) is derived from every event at or before
t. Pure and deterministic — the same inputs always yield the same state,
which is what lets a worker and the main thread agree frame-for-frame.
Sample a recorded SimulationFrame timeline at an arbitrary time
t, linearly interpolating unit positions between the two bracketing frames so playback is smooth regardless of the record rate. Cumulative destruction (buildings destroyed, walls broken) is derived from every event at or beforet. Pure and deterministic — the same inputs always yield the same state, which is what lets a worker and the main thread agree frame-for-frame.