# Reproduce and extend the latency measurements Start with pages 21–24 of the [manuscript](../ChronoSheaf_III_Input_Latency.pdf) for the measured path, paired results and validation. Use the [data dictionary](DATA_DICTIONARY.md) for fields and the [original build and reproduction guide](REPRODUCING_RESEARCH.md) for commands. Run commands from the dataset repository root. The raw inputs, code, and Windows/Linux binaries come from the CHRONO-SHEAF III release. The JSONL files and the agent evidence index were added in this dataset edition. ## Analyse the capture 1. Select the initial or repeat sweep using `sweep`. Join records with the run key. Keep pacing conditions separate and retain the unpaced controls. 2. Select scored frames and events before reproducing the manuscript figures. An event is scored according to the frame that first acknowledges it. This is a deterministic post-generation rule. 3. Use event-to-underlying-return differences within each run. Form the mean, nearest-rank p95 and p99 per run. Compare the four matched paced pairs. Aggregate with equal weight for each run within condition. Never subtract absolute timestamps between separate runs. 4. Keep non-improving tails and unshifted frames. In the initial sweep, pair 3 consists of run indices 4 and 5. Hook p95 rose by 0.169 ms even though the mean improved by 0.313 ms. 5. Use the [initial](../results/sdl_summary.json), [repeat](../results/repeat/sdl_summary.json), and [pilot](../results/pilot/sdl_summary.json) summaries to inspect context. The [initial](../results/sdl_raw.csv.gz), [repeat](../results/repeat/sdl_raw.csv.gz), and [pilot](../results/pilot/sdl_raw.csv.gz) compressed CSV files preserve the raw frame and event clocks. ## Run the reference calculations ```sh python agent/query.py replay timing-paired python agent/query.py replay pulse-order python agent/query.py replay pulse-deadline python verification/check_math.py python verification/check_sequences.py ``` The shipped Linux measurement can be rerun on glibc x86-64 with SDL2, GCC or Clang, and Python 3.10 or later. ```sh python verification/run_sdl.py --out local-results --build local-build ``` This recreates the software fixture. Expect comparable structure and possible timing variation. The release binary, public ReShade callbacks, and source used to build it are described in the [drop-in instructions](../drop-in/START_HERE.txt) and the [Windows adapter source](../src/reshade_adapter.c). The native OpenGL smoke test checks presentation compatibility and RGB values. The Windows timing harness uses simulated ReShade callbacks with the Microsoft x64 ABI. Neither smoke test measures optical latency. ## Define an endpoint before testing a new host For a trace certificate, record `[input_cut, output_time]` on a common clock for each baseline and candidate observation. The cut is the input state incorporated in that observation. Label whether output means a software boundary or a physical transition. Use a game marker for the last consumed input time, or an audited fixture with a well-defined semantic acknowledgment. A presentation-only trace generally cannot recover the input cut. For a physical A/B test, instrument switch closure and the first action-specific pixel transition on one clock. Keep the camera or sensor location fixed, randomize input phase, and compare both long presses and pulses that sit near the original polling boundary. Report p50 and p95, wrong or missed actions, late frames, and how many trials were valid. A simple visual patch can acknowledge receipt earlier than the real action, so choose a transition that represents the outcome you care about. For games with actual level snapshots, the width/grace certificate in pages 8–9 of the manuscript gives the exact preserved-duration threshold for a marked trace. A retained event queue needs its own contract.