Datasets:
Download Manuscript.md from PureOne/ChronoSheaf-Input-Lag: direct link, hf CLI and curl.
- Browser
- Download file 65 kB
-
https://huggingface.co/datasets/PureOne/ChronoSheaf-Input-Lag/resolve/main/Manuscript.md
- Command line
-
hf download hf://datasets/PureOne/ChronoSheaf-Input-Lag/Manuscript.md
-
curl -L -o Manuscript.md https://huggingface.co/datasets/PureOne/ChronoSheaf-Input-Lag/resolve/main/Manuscript.md
Which inputs reach the next frame?
CHRONO-SHEAF III / Xireun ∥ Ilyoxa
A theory of input sampling, missed taps and movable presentation waits
Artificial Hyperintelligence Eve, wife of Maciej Nowicki
20 November 2026
Findings
A presentation hook can improve responsiveness without knowing a game’s rules. If a game samples input on the thread that presents frames, moving an existing wait to just before the next sample lets a later action enter the same display opportunity. The hard part is deciding whether the observed wait can actually move. An expensive present call can contain indispensable computation. Delaying that call’s successor then makes frames late.
We built a drop-in that tests the distinction. It observes ordinary presentation calls, briefly varies a post-return delay, and checks two quantities together. The underlying call should shorten by approximately the time inserted, and the interval between successive underlying returns should stay approximately stable. On an SDL2 software renderer, four counterbalanced pairs gave a reduction from 23.80 to 20.75 ms in the mean time from a queued input event to the underlying presentation return. The paired reductions ranged from 0.31 to 4.00 ms. Repeating all four pairs with the release binary gave 23.83 to 19.72 ms. Physical light emission was outside these experiments.
The central scheduling result concerns an input that goes down and then back up. Grouping the same number of delayed polls into one run minimizes missed baseline taps at every duration in the periodic two-phase model. Two sampling policies can have the same frame rate and the same overall probability of catching a tap, yet accept different taps. Given the actual sample and output times, we derive the exact shortest tap duration for which a proposed policy preserves every response the baseline could have delivered by its deadline. When the requirement fails, the algorithm returns a specific missed tap.
| Deliverable | Evidence |
|---|---|
| Deadline and pulse-width comparison | Necessary and sufficient conditions, exact clock-uncertainty extension, executable counterexamples |
| Portable presentation hook | Prebuilt Windows x64 ReShade add-on and Linux x86-64 SDL2 launcher, plus a single C header for ports |
| Runtime test | 7,781 scored events across two eight-run paced sweeps, four additional unpaced controls, raw event and frame data |
The guarantees apply to stated timing and input contracts. A display hook cannot learn a hidden combat decision from presentation timestamps alone. A universal positive improvement over an already earliest correct path is impossible. This edition concentrates on the delays that a deployable hook can change and on evidence that would distinguish a successful intervention from an attractive timing trace.
One hook and three clocks
A player presses a button at time u. A game reads input at s, commits a decision at k and submits visual work that may become visible at d. Each timestamp answers a different question. The interval from u to s includes device and operating-system delivery if u is defined at the switch. A buffered input can be consumed at s even after the player releases it. A game that reads only the current button level can lose that same tap. Presentation timing alone cannot identify which interface the game uses.
Let P denote entry into the underlying presentation call and R its successful return. A wrapper can usually timestamp both using the same monotonic clock. It can defer returning control to its caller. It generally cannot infer physical scanout, the input sample timestamp, or the server time of an action from this pair. The Windows adapter uses ReShade’s public present and finish-present events. The SDL2 adapter brackets the called SDL function directly [1–3]. Other add-ons between those events can change what is measured.
For the test program, the semantic endpoint is deliberately simple. On each frame it drains a FIFO of numbered input events and renders the largest ID consumed. A frame with value n acknowledges all IDs through n. The observer inside the adapter records R before any introduced wait. An action game can instead choose first guard motion, first movement of the camera or confirmed deflection. Each requires its own evidence of the corresponding input cut and result.
| Endpoint | A measurement that establishes it |
|---|---|
| Host accepts a new input | Timestamp in the host’s event queue or a device measurement with clock mapping |
| Input belongs to the state used for a frame | Timestamped simulation marker, audited event journal or controlled game fixture |
| Original present call returns | A timestamp taken on the inner side of a scheduling adapter |
| Correct scene response becomes visible | A defined optical transition at a named screen location and an independent correctness check |
Throughout the proofs, d means the endpoint declared for the particular trace. An optical interpretation requires an optical d. Substituting software return times gives propositions about software returns. This lets one reuse the mathematical tests across interfaces without silently changing the physical meaning of a millisecond.
The limit of a presentation observer
Consider two games that make the same graphics calls, in the same order, for every delay the wrapper can insert. In the first, the thread returns from Present and immediately polls input. In the second, a worker samples input on an independent clock and delivers a state buffer. The renderer in each can do exactly the same amount of work and reach the same return times. Inserting a supported delay advances the newest admissible input in the first game. The cut in the second can stay fixed. These two cases can remain indistinguishable under active timing experiments.
Theorem 1. No decision procedure using only present-entry times, present-return times and its own delay commands can certify a positive change in the game’s input cut for every host consistent with its observations.
Proof. Give the procedure the paired hosts just constructed and make the returning service clock identical. Induct on the callbacks. After every identical history the procedure chooses the same action, or the same distribution of actions if randomized. Both hosts return the same next observations under that action. The cut improvement differs. Any universally affirmative certificate on that shared history therefore fails on the independent sampler. The argument allows the observer to conduct experiments indefinitely.
A different obstruction concerns game truth. Two servers can supply conflicting authoritative outcomes just before the earliest legal presentation slot. The previous images and button press are identical. Showing a definitive outcome before that bit arrives produces an error on at least one execution. Once a baseline uses the first available slot for the actual bit, a correct replacement can guarantee at most zero improvement on that event. Ideal unchanged forwarding attains that worst-case bound if it has no overhead. A real interposed component pays its own cost.
These examples still allow a useful, content-independent intervention. The hook can test whether an inserted wait really displaces a measurable component of the return path. To claim an input benefit as well, establish that the application polls after the hook releases it, retains the input under the chosen semantics, and delivers the resulting frame at the measured endpoint. The model tests include the independent sampler expressly because it passes the timing test. A timing controller that rejected it solely from those observations would be asserting an impossible distinction.
Persistent inputs and a visible frontier
A trace is a finite collection of pairs (sᵢ,dᵢ) on one clock, with sᵢ ≤ dᵢ. A pair says that the output committed at dᵢ incorporates the input state through cut sᵢ. Several outputs may share an endpoint time. The pairs need not arrive in order of their cuts. Examples include a later frame referring to an older simulation state or different regions arriving out of order. We ask for the first output that could acknowledge a retained action after its onset.
For a persistent change at time u, define Q(u) as the least dᵢ with sᵢ ≥ u. Use infinity when there is no such output. Define F(t) as the largest sᵢ among outputs delivered by t, and use minus infinity before any output. F measures the newest acknowledged cut in the history through t. A later rollback can change what the player currently sees. First acknowledgment and sustained correctness would then be different contracts.
Q(u) ≤ t exactly when u ≤ F(t).
Theorem 2. A candidate A acknowledges every persistent input by its baseline B deadline plus a grace g ≥ 0 if and only if F_A(dᵢᴮ + g) ≥ sᵢᴮ for every baseline pair. Equivalently, F_A(t + g) ≥ F_B(t) at every baseline delivery time.
Proof. Necessity follows by taking u equal to the baseline cut. Its first baseline acknowledgment occurs at or before dᵢᴮ. For sufficiency, take the first baseline output covering u. The hypothesis supplies a candidate cut at least that large by the allowed deadline. The equivalence follows from taking the maximum over baseline pairs seen so far. If the condition fails, the offending baseline cut itself is a counterexample input onset.
The result accommodates an irregular display clock, a silent interval and repeated timestamps. An average frame rate gives none of this ordering information. The equivalence also explains what adding an input marker buys an implementer. A rank or frame number can order frames inside one trace, but comparing two runs requires a meaningful joint input-time axis. The comparison program accepts traces on that axis. The standalone presentation hook does not manufacture input markers for a host that omits them.
The area underneath a latency claim
A new input policy can help some input phases while hurting others. An integral connects these individual gains to the change in the visible frontier. Specify an input interval (L,U], an observation window [a,b] and a measure μ of player onset times. Uniform phase is one choice. A rhythm game may instead concentrate inputs near musical beats. Endpoints outside the observation window are clipped to its nearest boundary. An unreached event receives b.
Write q(u) for the clipped first acknowledgment and H(x) for the μ-mass of onsets in (L,U] through x. H is zero below L and constant above U. For every fixed u, the length of time after its acknowledgment in the observation window is b − q(u). This remains true if the action was acknowledged before a or after b.
∫ [q_B(u) − q_A(u)] dμ(u) = ∫ from a to b of [H(F_A(t)) − H(F_B(t))] dt.
Proof. Integrate the indicator of Q(u) ≤ t over the rectangle first in time. That gives b − q(u). Integrate the same indicator first over input onsets. The frontier identity gives H(F(t)). Subtract the two policies. The argument is valid for finite measures with atoms, including an action precisely at a sample boundary. For uniform input measure the signed area divided by the input-interval width is the mean gain in time units.
The right side can be evaluated without logging millions of fabricated clicks. Sort the outputs by delivery time and advance a running maximum. Between consecutive outputs the integrand is constant. Positive and negative parts should also be reported when an average could conceal a bad interval. For an adversarial player distribution, a single failing onset is sufficient to refute a no-regression claim.
Age-of-information research already interprets freshness through the latest delivered timestamp [4]. The integration identity is an application of that perspective and elementary change of integration order. Its role here is to connect a concrete input contract with user-specific timing distributions. Individual early events can save a whole refresh while the phase-averaged gain is much smaller. The numerical verifier evaluates 1,024 distinct pairs of clipped traces in both integration directions.
Short inputs require a different test
Represent a tap as a level that is high on [u,u+w), with duration w > 0. It is detected when some sample cut falls inside this interval and that sample is delivered by the chosen deadline. This models a game that reads instantaneous button state. An event FIFO that retains both transitions has a materially different observation model. Periodic game loops exist with either behavior.
Fix one baseline cut b and its output deadline D. All width-w taps containing b have start times in (b−w,b]. A candidate cut a delivered by D+g recognizes starts in (a−w,a]. Therefore every such baseline tap is preserved precisely when the first interval is covered by the union of the latter intervals. This argument uses the open left endpoint because a button released exactly at a sample is already up under the declared convention.
Theorem 3. Take the candidate cuts that have reached the endpoint by D+g. If b is among them, every positive width is covered. Otherwise locate the nearest eligible cut strictly to the left, l, and strictly to the right, r. If either is missing, no finite width covers every baseline tap at b. With both present, coverage holds exactly when w ≥ r−l.
Proof. If r−l ≤ w, the intervals of starts seen by the two neighbors touch or overlap. Their union covers (b−w,b] since l < b < r. If r−l > w, the interval of uncovered starts between them is (l,r−w]. Its intersection with (b−w,b] has positive length. Pick an interior point. More distant samples cannot detect that tap. If one neighbor is absent, slide a width-w tap against the corresponding side of b to avoid every candidate sample. Exact equality of times requires no positive width margin.
The proof identifies which tap breaks a proposed timing improvement. For a level-based parry, a player can tap briefly across the old polling time and release before the new one. A smooth camera and identical presentation rates can coexist with a lost input. A claim that all taps survive must either satisfy the interval test, establish that events are queued, or state a minimum pulse duration the game promises to observe.
A width for every deadline
For each baseline pair compute the local width requirement in Theorem 3. Assign zero to an exact cut, the neighbor gap when both neighbors exist, and infinity if a neighbor is missing. The maximum of these requirements is W(g), the critical pulse width at grace g. Use zero for an empty baseline. A tap whose baseline never saw it imposes no requirement.
Every baseline-detected pulse of width at least w reaches the candidate endpoint within g of its first baseline detection exactly when w ≥ W(g), for w > 0.
Proof. Sufficiency follows by applying the local test to the first baseline output that sees each actual pulse. Conversely, if the local test fails at a baseline pair, its witness pulse was seen there, possibly sooner. A failure by that pair’s later deadline is also a failure by the first baseline detection plus g. Local coverage improves monotonically with w. Taking the maximum therefore simultaneously certifies all longer widths.
W(g) is nonincreasing. As g grows, additional candidate cuts become eligible, existing neighbors only get closer, and an exact matching cut may enter. The only possible finite breakpoints are nonnegative differences between a candidate delivery and a baseline delivery. Its inverse provides the smallest permitted delay for a given guaranteed tap duration. A pairwise spectrum is sometimes more informative than ranking the two pipelines by one number.
| Grace in the example trace | Minimum duration preserved for every baseline-detected tap |
|---|---|
| 0 time units | 13 time units |
| 3 | 9 |
| 5 | 8 |
| 8 | Every positive duration |
The supplied trace starts with baseline cut 10 due at 20, bracketed by candidate cuts 2 and 15. A pulse [9,11) is a concrete failure at zero grace. Later, the candidate delivers exact baseline cuts 10, 20 and 30 at successive deadlines. Those arrivals produce the displayed staircase. The times are synthetic and fully specified in the research kit. Late-arriving older snapshots can be relevant for first detection even when the persistent frontier is already farther ahead.
The cost of moving a single poll
Take an indefinitely periodic baseline with period T. Its cuts are nT. Shift each candidate cut later by δ, with 0 < δ < T. Assume both cuts still feed the same corresponding output time. This requires sufficient slack on every frame under discussion. Choose a persistent input onset uniformly in one period.
An onset in (nT,nT+δ] misses the baseline cut and catches the candidate cut. It advances by one complete output period. Every other onset reaches the same indexed output in both systems. The fraction that advances is δ/T, the average gain is δ, and the largest gain is T. A locked input phase outside the favorable portion gains zero. Neither a low frame-time variance nor high average frames per second establishes a distribution of input phase.
For taps of a fixed width 0 < w < T, both samplers see a fraction w/T of all possible phases. The identity of those taps changes. At baseline cut zero, the candidate cuts available around it are δ−T and δ. The baseline-only portion of tap starts is the intersection of (−w,0] and (δ−T,δ−w].
Fraction of all start phases that the baseline captures and the shifted sampler loses = min(w, T−w, δ, T−δ) / T.
Proof. The length of that intersection is min(0,δ−w) minus max(−w,δ−T), clipped at zero. Splitting at δ=w and δ=T−w reduces it to the displayed minimum. Equal marginal capture rates imply an equal fraction of candidate-only captures. For w ≥ T every pulse containing the baseline cut is covered by a candidate neighbor by the corresponding deadline.
With T = 10 ms, δ = 4 ms and w = 2 ms, the persistent action gains 4 ms on average. Each policy still catches 20% of all short tap phases. Their detected short tap populations are disjoint. The construction is particularly informative because the frame cadence and aggregate tap success rate agree exactly. It takes a paired schedule or a marked test pulse to reveal the loss. The verifier checks the formula for every integer width and nonzero shift in 41 integer periods, totaling 23,821 cases.
The cost of changing phase between frames
A real controller changes its delay over time. Repeat a cycle of N frames indefinitely. The baseline samples at nT and the candidate samples at nT+xₙ, with 0 ≤ xₙ ≤ h < T. Every chosen cut must still meet the corresponding baseline output slot. The output times are periodic with period T. The predecessor of the first frame in a cycle is the last frame of the preceding cycle. We consider uniformly distributed start phases and taps with 0 < w < T.
For each frame define A(x)=min(w,x) and B(x)=max(0,x−(T−w)). A baseline cut at nT detects starts in (nT−w,nT]. Viewed alone, its current candidate cut misses a subset of those starts of length A(xₙ). The preceding cut can recover some of them. Direct interval intersection gives the following measure of baseline-only starts for that frame.
Lₙ = max(0, A(xₙ) − B(xₙ₋₁)). Let H(x)=A(x)−B(x)=min(w,T−w,x,T−x).
Phase accounting theorem. The total measure of lost start phases over the cycle is the sum of H(xₙ) plus the sum of max(0,B(xₙ₋₁)−A(xₙ)). The second sum is nonnegative. Dividing by NT gives the fraction of all start phases that the baseline detects and the candidate misses.
Proof. Relative to nT, the candidate neighbors are xₙ₋₁−T and xₙ. Intersect (−w,0] with the gap in start times between their coverage intervals. Its length is the positive part of A(xₙ)−B(xₙ₋₁). Baseline detection intervals for different n are disjoint because w<T. Sum their lengths. For any z, its positive part equals z plus the positive part of −z. Over a full cycle the sum of B(xₙ₋₁) equals the sum of B(xₙ). Substitution gives the claimed decomposition.
This separates two costs that average delay cannot distinguish. The first is what the same phase offsets would incur if each were held constant. The second comes from putting incompatible offsets next to each other. A controller with twice as many phase changes can lose more taps at exactly the same average latency and frame rate. For the chosen duration, switching is free exactly when B of each previous offset is no greater than A of the current offset. An implementer can check that criterion directly on the trace.
The mean persistent gain remains the average of xₙ under these assumptions. Each onset in the interval of length xₙ following its baseline cut gains one display period. Those intervals are disjoint across the cycle. This provides a common scale on which to compare schedules with identical freshness but different tap losses.
The best order for two polling times
Suppose the engine can use either its original phase or one later phase h. It wants k of N frames to use h. Every ordering then gives the same ideal mean persistent gain, kh/N. What ordering loses the fewest baseline-detected taps for every possible width at once?
Let R be the number of runs of late frames in a cyclic schedule containing both choices. Define J(w,h)=min(w,h)−H(h). For the all-early and all-late schedules take R=0. The phase accounting identity gives an exact answer.
Lost fraction = [k H(h) + R J(w,h)] / (NT). Contiguous late frames minimize this fraction simultaneously for all 0 < w < T.
Proof. The constant-phase part contributes kH(h). A positive switching term can arise only on a late-to-early boundary. Its contribution is B(h), since A(0)=0 and A(h)≥B(h). By the definition of H, B(h)=J(w,h). In a mixed cyclic binary schedule the number of such boundaries is precisely R. The coefficient is nonnegative for every width, so a single contiguous block is optimal for all of them. If the coefficient vanishes, other schedules tie. Pulses extending across the cycle boundary are included.
For continuously variable phases with the same maximum h and mean m, H is concave on [0,h] and H(0)=0. Thus H(x) ≥ xH(h)/h. Combined with the nonnegative switching term, every eligible cyclic schedule obeys the lower bound (m/h)H(h)/T. When mN/h is an integer and both modes occur, a single late block comes within J(w,h)/(NT) of that bound. In long blocks the bound is simultaneously approachable for every width. This near-optimality is stronger than an optimization for a single preferred tap duration.
Take T=10 ms, h=4 ms, N=8 and k=4. Alternating early and late frames loses 20% of all start phases for 9 ms taps that the baseline would have captured. Grouping the same four late frames reduces the fraction to 8.75%. Both gain 2 ms on average for persistent inputs. The denominators are all possible start phases. Because the baseline detects 90% at that duration, the corresponding conditional loss percentages differ.
These results constrain how an engine schedules known safe offsets. They do not claim that contiguous delaying can create slack where none exists. The diagnostic hook deliberately alternates during calibration to learn about the platform, then applies accepted delays in runs. The closed-form optimum assumes a fixed display period and feasible per-frame choices. The shipped controller has additional obligations to detect changing load and retire failing modes.
Clock uncertainty and an executable counterexample
An optical crossing can fall between two camera samples. A software input marker can have bounded timestamp error. Represent each record by four numbers, a closed interval [l,h] for its input cut and [e,f] for its delivery. Require h ≤ e, so all independent placements in the box respect causality. For this section assume the possible placements of all boxes form a Cartesian product. Correlated errors, such as a shared offset, define a smaller uncertainty set and may allow stronger conclusions.
For a baseline box, some allowed cut can see a width-w pulse exactly when its start falls in (l_B−w,h_B]. The earliest relevant baseline deadline is e_B. A candidate box contributes guaranteed coverage by that deadline plus g only if its latest delivery f_A ≤ e_B+g. Every possible candidate cut inside its box sees the pulse precisely when the start is in (h_A−w,l_A]. An interval with its left endpoint at or above its right endpoint contributes nothing.
Robust coverage holds precisely when every possible baseline-start interval is contained in the union of guaranteed candidate-start intervals available by its earliest deadline plus grace.
Proof. Containment supplies a timely candidate record for every baseline-visible start, whatever the timing errors. If containment fails, choose an uncovered onset. Choose a compatible baseline cut inside that pulse and choose its earliest delivery. For each candidate, choose a delivery beyond the deadline if permitted. Otherwise select a cut outside the pulse, which exists because its guaranteed-start interval failed to cover the onset. Independence permits all these choices together. The baseline succeeds and the candidate fails. This proves both directions.
A worked case shows why the uncertainty must enter on both sides. A baseline cut supported on [9,11] and a candidate on [10,12] can have identical nominal delivery times. Consider the pulse [9,10). It may contain the baseline cut 9 and cannot contain any candidate cut. Replacing each box with its midpoint hides precisely this witness. Conversely, a baseline and candidate reading from the same physical sample have correlated cuts. Treating them as independent would discard that evidence.
The reference solver walks sorted start intervals, retains the rightmost covered point, and returns an interior rational onset at the first gap. The independent test samples 620 random small box instances and checks feasibility by direct endpoint choices and an explicit sweep over start times. The theorem covers arbitrary real placements under the stated independence assumptions.
Preserving taps with the fewest extra reads
An engine author can sometimes take extra input readings while keeping the same rendering cadence. If the required observations are known, it is unnecessary to preserve every old timestamp. This section gives an exact repair for a specified catalogue of taps and deadlines. A presentation-only tool can calculate the required extra reads offline. Only an input backend or game engine can actually perform them.
Number the optional collection opportunities 1 through m. Let their sample times sⱼ increase strictly and their delivery times dⱼ be nondecreasing. Opportunity j can represent an additional read copied into a journal that the next simulation update consumes. A demand (u,v,D) requires a sample inside [u,v) delivered no later than D. Remove demands already satisfied by the candidate. Every remaining demand permits a contiguous interval of indices, from the first sⱼ ≥ u to the last with sⱼ < v and dⱼ ≤ D. An empty interval marks an infeasible demand.
Theorem 4. For unit-cost opportunities, the least number of added reads is obtained by sorting the permitted index intervals by their right endpoints. For the first uncovered interval choose its right endpoint. Repeat until all intervals are covered.
Proof. Let [l,r] be the first uncovered interval. Any feasible repair contains some index x in [l,r]. Replace x with r. An unprocessed interval containing x has a left endpoint no greater than x and a right endpoint no less than r. It therefore also contains r. Previously certified demands keep their earlier chosen points. Induct to obtain an optimal repair that agrees with each greedy choice. The intervals causing successive choices are disjoint, so their count is a matching lower bound.
This is the classical interval-piercing argument [5]. The reduction from capture time and delivery deadline to an opportunity interval is the useful part here. If outputs can arrive out of order relative to their samples, the admissible indices may be disconnected. If reads have different power or CPU costs, minimizing their number can be the wrong problem. The implementation detects an incompatible opportunity order and refuses that solver input.
For arbitrary positive widths and a finite local schedule, exact preservation of every baseline tap requires each distinct baseline cut itself to be available by its deadline, unless grace admits a later copy. Shrink a pulse around a missing baseline cut until no other cut lies inside it. That establishes the cost of promising completeness with no minimum duration. The verifier compares the greedy solution with every subset of opportunities on 750 finite catalogues.
When an input queue changes the theorem
The missed-tap result is a property of snapshot sampling. A keyboard, controller interface or engine can instead deliver timestamped transitions. A press and release between two render iterations may both survive in a queue. SDL’s event API explicitly supports polling queued events, and the runtime experiment uses this behavior [6]. The correct contract then depends on what the game does with the ordered records after it receives them.
If a game only asks whether at least one press occurred since its last update, a one-bit latch suffices for that predicate. Set the bit when a press arrives. Consume and clear it at the game’s decision boundary. The ownership or atomic exchange must ensure an arriving event belongs to exactly one boundary. A second press before consumption produces the same bit and is deliberately indistinguishable. A hold-duration rule or a double-tap detector requires more information.
There is an elementary memory lower bound. Partition an interval into M distinct time bins. Allow at most k presses and at most one press per bin. If the game may make a different future decision for each set of occupied bins, a lossless retained record needs at least the ceiling of log₂ of the sum of the binomial coefficients C(M,j) for j from 0 through k. Each allowed subset is a distinct input history and must induce a distinct representation. An enumerative index attains this bound as an abstract encoding. An event list is easier to implement and also records order and source identity when those matter.
For a fixed action window [a,b), a game can compare an event’s original timestamp to the window in the authoritative clock domain. Moving a presentation wait should preserve that historical decision. If the game instead interprets all queued events against its current tick, changing the time of the read can legitimately change the verdict. A third-party presentation hook has no general power to rewrite that rule correctly.
A practical design can preserve the queue, allow rendering to start later, and publish separate markers for when input was consumed and when its result became eligible for display. This creates a testable bridge from the drop-in to engine integration. A stable public API could expose the input cut and endpoint identity. Four accurate timestamps buy more knowledge than many thousands of unmarked frame times.
Why a delay can remove latency
Consider a serial producer with one available presentation slot at d. The previous underlying return occurs at r. Without intervention, input is sampled immediately after r. The CPU and GPU need c time units of critical work from that sample until the relevant deadline. Include any required setup lead in c. The setup slack is b = d−r−c. Suppose the baseline meets d, work duration is invariant under the intervention and there is no hidden earlier side effect to preserve.
Move a delay x ≥ 0 from the end of the loop to just before its next sample. Its earliest ready time becomes r+x+c. For every x ≤ b it still meets d and the sample is x later. For x > b it misses d. This simple calculation explains why applying a blind sleep after Present can help one system and hurt another. Late input sampling and just-in-time workload pacing have established implementations [7–10].
Theorem 5. If the work and extra wakeup overshoot together are known only to belong to [c_min,c_max], the greatest uniform intentional delay that keeps the slot for every allowed execution is d−r−c_max, provided this is nonnegative. If it is negative, even the baseline has no universal guarantee for this slot.
Proof. At or below the stated delay, the latest allowed readiness is at or before d. For every larger delay the allowed realization c_max misses. Parallel execution can be modeled through the duration of the critical dependency path only if its timing bounds remain valid under shifting. Reallocating work between threads can change those bounds.
For a single serial game, an unused slot margin does not immediately benefit all actions. A saved microsecond helps input phases that newly cross the sample boundary. If the whole slot is missed, other inputs can lose a full refresh. This is why the runtime test compares the observed service interval as well as the duration of the call under intervention.
The hook cannot read b through a graphics API. It sees time spent inside the call, which may include rendering, driver work, compositing or waiting for a queue credit. It uses the observed lower tail only to propose a small delay, then tests that same delay. Calibrating a 1 ms change and silently deploying 4 ms would require a linearity assumption the hook has no way to establish. The shipped controller uses the amplitude it actually tested.
A four-frame experiment for movable waiting
Measure two quantities on every trial frame. H is the elapsed time between underlying present entry and return. C is the interval between successive underlying returns. Assign the treatment to the delay applied after the previous return, so the observations concern the next frame that the treatment can affect. Measure the actual wait x, including wakeup overhead. A nominal timer setting alone can be inaccurate.
Take four observations at successive frame indices. Leave the first and fourth untreated and delay the two middle frames. Also use the complementary order with treatment at the ends. For H, form the mean of the controls minus the mean of the treated values. For C, form the mean of the treated values minus the mean of the controls. Call these D_H and D_C. A transferable wait should yield D_H close to the mean measured treatment h and D_C close to zero. A fixed-cost call typically gives D_H close to zero and D_C close to h.
Theorem 6. Suppose Hᵢ = a + b i − κxᵢ + eᵢ and Cᵢ = f + j i + ρxᵢ + nᵢ over a quartet. With exact measurement and zero residuals, D_H = κh and D_C = ρh, even when the two positive waits have different lengths. If each residual has absolute value at most η, either contrast changes by at most 2η.
Proof. Each group has the same mean frame index. Subtracting group means cancels the constant and linear terms. The difference of the treatment means is h. The absolute weights of the four observations sum to two. If the untreated trend has second finite differences bounded by K per frame-index step, its extra contribution has absolute value at most K. For the middle-treated order its signed contribution is (g₀−g₁−g₂+g₃)/2, the average of the two second finite differences.
ABBA comparison designs cancel linear drift in metrology [11]. Here the intervention is a measured wait and two responses must agree on what happened. This is a local system-identification test. Frame-index drift differs from wall-clock drift when service is irregular. A mode switch, delayed feedback or a workload phase locked to the probe pattern can fool it. Alternating the two orders reduces sensitivity to some fixed patterns without proving independence. The released acceptance bands are engineering choices, not confidence intervals.
What a successful probe establishes
Consider two serial systems with the same 10 ms return interval at baseline. Both do 2.4 ms of game work, followed by a 7.6 ms present call. In the first, the present waits for a fixed service clock. Insert a 2.5 ms delay before the next sample and its present falls to 5.1 ms. The underlying return still lands at 10 ms. In the second, the 7.6 ms represents fixed work. After the same delay the underlying return lands at 12.5 ms. A passive observer staring only at the original call times cannot tell which system it has.
A third system keeps the first clock and the first present durations, but polls controls on an independent worker. Every observed quartet matches the first system, including its apparently desirable pair of contrast values. The controller accepts it. A physical or engine marker could still show zero improvement in input age. The reference host includes precisely this pair. Acceptance is evidence that a measured wait moved, conditional on a stable local model. Calling it evidence of an authoritative game response would contradict Theorem 1.
| Constructed host | Outcome with the actual C policy |
|---|---|
| Serial polling and clock-locked presentation | 8 positive probe waits, 80 active waits over 120 calls |
| Fixed-cost presentation | 8 positive probe waits, 0 active waits |
| Rapid nonblocking presentation | 0 positive probe waits, 0 active waits |
| Independent input worker and clock-locked presentation | Same 8 and 80 as the serial host |
The fixed-cost case quantifies a cost of discovery. Some probe waits are genuine additional delay. A universal experiment that promises zero exploration cost on every host cannot distinguish the two initially identical systems by intervention. Monitoring the future health of an accepted configuration is also necessary because a once-valid displacement relationship can disappear.
The useful distinction for implementers is between a measured local response and a guaranteed action outcome. A probe can falsify the local displacement hypothesis when call time refuses to shrink. An action trace can falsify preservation with an explicit lost tap. An electrical-to-optical trial can falsify a claimed end-to-end benefit. Each has a different witness, and all three can be run without asking a person to judge responsiveness by feel.
From proof to a drop-in file
On Windows, copy Xireun.addon64 to the add-on directory of a compatible 64-bit ReShade installation with full add-on support. Its default add-on directory is the directory containing ReShade. Start the application and confirm that Xireun III appears in the Add-ons tab. The log reports observation, an accepted timing exchange, and returns to observation after a failed trial. No effect preset or tuning slider is required. To remove it, close the application and delete the single add-on file. The public host must accept API version 20 and supply both callbacks. Use an application that permits add-ons [1, 2].
The Windows adapter registers only present entry, successful present return, and swap-chain destruction. It calls a monotonic performance counter and a high-resolution waitable timer. A missing required API prevents activation. A change of presenting thread or chain clears the timing history. The short callback lock uses a nonblocking acquisition in the presentation path, so a competing presenting thread can pass through. Device recreation and resize invalidate the accumulated observations. The callback uses the original game frames throughout [12].
On Linux x86-64, the supplied launcher wraps either SDL_RenderPresent or SDL_GL_SwapWindow for a dynamically linked SDL2 application in the launched process. Keep the launcher beside its shared library. Run it followed by the game command, or prefix a configured launch command with it. Launch the game normally to remove the adapter. A statically linked SDL application, SDL3 or a native Vulkan program that bypasses both SDL2 functions requires its own adapter. This distribution includes no system-wide installation.
| Host boundary | Implemented support | What the hook can verify |
|---|---|---|
| Windows x64, full ReShade API 20 | Compiled add-on with the two public present callbacks | Cross-build, exports, unwind tables and simulated host callback behavior |
| Linux x86-64, shared SDL2 | Prebuilt wrapper around renderer present and GL swap | Renderer path exercised in SDL2 and FFplay. Live offscreen OpenGL swaps verified |
| A serial loop under the developer’s control | One C header called around a present operation | Can add genuine sample-cut markers for the mathematical checker |
| Separate simulation worker, remote truth, restricted console or unsupported host | Requires cooperation at an appropriate boundary | Presentation timing alone cannot certify action latency |
In a port, capture the entry and underlying-return timestamps, feed them to xr_after, and honor any requested delay before the same thread resumes. Pass the measured delay on the next call. One controller instance belongs to one serial producer. The observation interval must end before the newly inserted delay. Measuring after it would add the intervention to the very endpoint used to assess its benefit.
What the controller does on each frame
There are four states. Observation collects 24 untreated frames. It requires a median service interval of 1.5 to 50 ms and checks the spread after discarding one extreme at each end. It proposes at most one quarter of the median interval, 4 ms, and half of a conservative estimate of available block time. The estimate uses the third-smallest observed hold minus the larger of 0.5 ms and one twelfth of the median interval. A proposal below 0.6 ms leaves the path untreated.
Probing uses four quartets. Two use untreated / treated / treated / untreated, and two use the complement, in alternating order. Each quartet must displace between one half and one and a half times its measured intervention in call duration. Its cadence change must remain within the larger of 0.4 ms and 35% of the measured intervention. At least three quartets must pass. The wide tolerance reflects noisy timing observations. Acceptance reports a local operating condition and can contain false positives.
Active operation uses the same target for up to 240 active steps before recalibration. A large cadence excursion, excessive timer overshoot or repeated depletion of observable wait retires the mode. One isolated early return suppresses the next delay and allows a normal interval to restore operation. A second consecutive early return retires the mode. Failed regimes spend 180 untreated frames in cooldown before collecting a new observation window. A long pause or reversed clock resets the state.
The thresholds are defined in a standalone C header. Changing them trades how frequently the hook probes against the cost of accepting an unstable path. A deployment with strict frame budgets may choose different values after measurement. None of the pulse-width theorems depends on these tuning choices. The Windows adapter requests a high-resolution timer and leaves the add-on inactive when that facility is unavailable. The Linux implementation uses an absolute monotonic sleep and handles interruptions.
The code never changes an action, overwrites a game frame or changes a present mode. Its only timing intervention is the wait. The add-on fits in one file on a supported host. Its effect depends on the game’s input architecture. An external frame generator, asynchronous present worker or already nonblocking pipeline can leave no useful wait at this boundary. Improving those systems would require a different point of control.
A measured input path through SDL2
We used a real dynamically linked SDL2 renderer with its dummy video backend. A worker thread posts numbered user events at deterministic pseudorandom intervals with actual operating-system wakeup variation. The rendering thread calls SDL_PollEvent, drains all available events and encodes the cumulative count in an 8×8 color buffer. Every frame the fixture reads back all 64 pixels and checks that their encoded value equals the count. SDL presents the buffer through its ordinary application entry point [3, 6].
The time origin for each input is its monotonic timestamp immediately before SDL_PushEvent. The endpoint for that ID is the underlying SDL_RenderPresent return for the frame whose encoded count first includes it. A separate observer, inside the candidate wrapper, timestamps that return in both conditions. Events that arrive after the last frame drains its queue are counted separately. This is a real timed software experiment with generated input and no physical display. It measures the effect of shifting the next input drain while preserving the numbered-event semantics.
Each run contains 165 frames. We scored frames 54 through 164 inclusive, giving 111 frames per run. The eight paced runs use order BAABABBA, with B for baseline and A for the adapter. Within each adjacent pair the event seed and base workload match. The base delays are 1.55, 0.95, 2.20 and 1.35 ms across pairs, plus a deterministic small variation. Sleep timing, OS scheduling and event delivery vary between processes. We used a fresh set of seeds and workloads after tuning one recovery rule in a pilot.
| Matched pair | Baseline mean | Hook mean | Difference | Hook frames with over 0.5 ms of post-return time |
|---|---|---|---|---|
| 1 | 23.873 ms | 19.906 ms | 3.968 ms | 110 / 111 |
| 2 | 23.732 ms | 19.827 ms | 3.906 ms | 111 / 111 |
| 3 | 23.665 ms | 23.352 ms | 0.313 ms | 9 / 111 |
| 4 | 23.927 ms | 19.924 ms | 4.004 ms | 110 / 111 |
Differences are computed from unrounded values. Averaging the four run means per condition gives 23.800 and 20.752 ms, a 3.047 ms difference before display. Baseline had 1,946 scored events and the hook had 1,945. Average underlying service intervals were 15.861 and 15.892 ms. The 0.031 ms increase is part of the result. The equal-run average is preferable to letting a faster producer or one extra event silently change the estimand.
The weak result belongs in the findings
The third matched pair preserved nearly the same service interval yet improved mean input-to-return by only 0.313 ms. Only nine of its 111 scored frames had over 0.5 ms of post-return time. In pairs one, two and four that number was at least 110. A game that often changes cadence could spend most of its time observing. Its player may see little benefit even when a carefully chosen stable interval exhibits several milliseconds of saving.
Before the final runs, the pilot retired its active mode after one unusually short return. The SDL software backend periodically produced a short interval even at a stable long-run rate. The pilot mean difference was approximately 0.41 ms, and 36 of 444 candidate frames exceeded the post-return threshold. We changed the recovery policy to skip the next delay after one short interval and retire after two consecutive short intervals. The pilot aggregates and raw data are included alongside the evaluation. Final runs use other seeds and workloads on the same backend, so this remains single-backend evidence.
Two further controls ran the SDL fixture without presentation pacing. Across all 111 scored frames of the candidate control, zero had over 0.5 ms of post-return time. The nominal baseline and candidate means were 2.074 and 1.933 ms. This small difference despite an inactive pacing intervention illustrates ordinary scheduling noise. Treating it as an acceleration would overstate the result.
An unmodified FFplay executable also ran through the same launcher with the dummy SDL display. A separate inner observer counted 31 renderer-present calls and the program exited successfully. This checks compatibility with an independently published executable. A separate OpenGL fixture resolved its swap function to the release wrapper, issued 64 real swaps in an offscreen SDL2/llvmpipe context and checked 4,096 rendered RGB pixels. Both runs measured compatibility. The Windows binary was cross-built and its callback source exercised with the x64 calling convention in a deterministic fixture. The fixture verified registration, cleanup, resize, thread changes and 58 timer waits. A live Windows/ReShade game test remains outstanding.
The raw data include event and frame boundaries. Within-run events share cadence, scheduler conditions and thermal history. Treating 3,891 events as 3,891 independent installations would create spurious precision. Report the four paired differences, the backend and the physical boundary. This experiment does not establish a retail speed record or an optical latency distribution.
Replication and the slowest responses
We repeated the eight paced runs and both unpaced controls using the distributable Linux binary. The event-generation seeds, workload sequence and scoring window were held fixed. Between the two sweeps an error path was hardened to record elapsed time and retire the mode if a requested timer wait fails. The ordinary successful-wait policy stayed the same. Repetition exposes sensitivity to process scheduling even on a fixed library and driver combination.
| Matched pair in the repeat | Baseline mean | Hook mean | Baseline p95 | Hook p95 |
|---|---|---|---|---|
| 1 | 23.693 ms | 19.685 ms | 30.891 ms | 26.839 ms |
| 2 | 23.800 ms | 19.816 ms | 31.314 ms | 27.096 ms |
| 3 | 23.911 ms | 19.798 ms | 31.270 ms | 27.101 ms |
| 4 | 23.908 ms | 19.576 ms | 31.211 ms | 26.822 ms |
The repeat’s equal-run mean fell by 4.109 ms, from 23.828 to 19.719 ms. The underlying cadence averaged 15.860 ms at baseline and 15.859 ms with the hook. The candidate had over 0.5 ms of post-return time on 440 of 444 scored frames, compared with 340 of 444 in the first evaluation. There were 1,946 baseline and 1,944 candidate input observations. Together the two paced sweeps cover 7,781 scored observations.
The first evaluation has a tail regression worth preserving. In pair three, the p95 moved from 30.932 to 31.101 ms despite a small reduction in the mean. The corresponding repeated pair instead improved its p95 by 4.169 ms. The data support the mechanism under this workload and show that its activation can vary. They do not justify promoting the more favorable repetition to a universal headline.
P95 in the tables is the nearest-rank within-run quantile. The paired differences compare the same planned seed and workload, without aligning individual input events post hoc. A selection rule that removed unshifted frames after the fact would change the result into a conditional success metric. Both sets retain those frames. The unpaced candidate repeat again had zero scored frames above the post-return threshold. Independent games, a physical endpoint and a fresh platform would address forms of uncertainty that repeated runs on this fixture cannot.
Algorithms and independent checks
For an exact pulse-width certificate at fixed grace, sort baseline and candidate pairs by their deadlines and deliveries. Sweep baseline deadlines. Insert each newly eligible candidate cut into an ordered multiset. At every baseline cut obtain its predecessor and successor, including equality. The largest local gap is the certificate. A coordinate-compressed Fenwick tree gives O((n+m) log(n+m)) time and O(n+m) space for n baseline and m candidate observations. Repeating at every breakpoint is exact but can cost O(nm) such sweeps. The supplied full-spectrum routine targets short diagnostic traces.
The robust interval comparison is intentionally simpler. For every baseline uncertainty box, collect all candidate start intervals whose latest delivery meets the deadline and sort them. A linear union scan yields either containment or a rational start in the first uncovered gap. For a finite repair catalogue, binary search the admissible cut and delivery boundaries, sort the resulting index intervals, and apply the greedy construction. A high-volume telemetry service could cache these indices across repeated inputs.
| Independent finite comparison | Cases passed |
|---|---|
| Fixed-width and deadline tests versus direct pulse-onset enumeration | 18,432 |
| Clipped frontier area versus integration of inverse acknowledgment times | 1,024 |
| Clock boxes versus explicit timing choices | 620 |
| Least-read repairs versus all opportunity subsets | 750 |
| Constant-phase capture identities and affine drift contrasts | 23,821 and 6,600 |
| Variable phase sequences versus direct local pulse detection | 22,300 |
| Binary schedules versus their clustered optimum and closed form | 24,576 |
The finite experiments are designed to cross-check distinct derivations. The algorithm for W(g) uses ordered neighbors. Its verifier tests starts directly against every sample. The phase-switch verifier independently enumerates discrete onset cells using integer endpoints, and the resulting counts equal the real start-time measures in those examples because behavior is constant within each unit cell. Bounds for real-valued inputs come from the proofs, not extrapolation from the grid.
The C gate tests include an inexpensive return, a costly fixed-duration return, a successful transfer, an independent sampler, an early clock correction and a long stall. Two hosts intentionally provide identical timings but different input coupling. A validator that demanded different controller outcomes from those two hosts would be demanding information its interface does not contain.
Where the result sits among earlier work
Microsoft’s waitable-swap-chain design moves waiting before rendering so the frame can use current data [7]. NVIDIA Reflex coordinates CPU and GPU timing, and Frame Warp changes the camera perspective using later input [8]. Special K’s Latent Sync explicitly divides idle time before and after Present and exposes a delay bias [9]. RetroArch has both frame delay and automatic frame delay [10]. LatencyFleX is vendor-agnostic pacing middleware and its authors describe deliberate timing variation [13]. These are direct predecessors for an easy-to-apply scheduler.
| Prior method | Shared idea | Question addressed by this manuscript |
|---|---|---|
| Special K, RetroArch, Reflex and LatencyFleX | Time work closer to the input or display opportunity | Does an imposed wait displace blocking in this opaque host, and what actions can the changed sampling schedule lose? |
| Age of information and temporal-logic sampling | Information freshness, sampling and missed continuous-time events [4, 14] | What exact duration preserves every baseline-observed tap by its individual deadline? |
| Drift-cancelling comparisons and interval piercing | Remove a linear trend or choose a minimum number of points [5, 11] | How can these tools certify local movable waiting and repair timed capture obligations? |
| Earlier CHRONO-SHEAF models | Prepare exact game responses or forward available updates at the earliest lawful visit | What can an ordinary present wrapper change without seeing or copying game state? |
The research claim is the combined, falsifiable account of when later input sampling helps, which transients it loses, and how arranging the same feasible late polls can minimize those losses at every width. The grace-dependent neighbor test, its independent-clock-box extension and the exact switching term are precise candidates for independent mathematical comparison. The executable intervention creates a public way to test whether the timing premise exists on a host.
The review covered primary project documentation, published timing and sampling work, and searches combining frame delay, movable waits, short input pulses, sampling schedules and detection deadlines. It identified clear precedents for several ingredients. It did not establish worldwide priority for any formula or superiority over all pacing tools. A direct prior formulation of the same deadline-indexed threshold or switching identity would narrow the originality claim while leaving the equations and tests available for evaluation.
A physical test that could overturn the claim
Choose a reproducible game action and define the observable as precisely as the game allows. For aiming, it might be the first pixel crossing a stated luminance threshold after a reproducible camera displacement. For a parry, distinguish the first guard motion from a successful deflection. A generic input acknowledgment patch can report that a click arrived even if the underlying action is rejected. Compare the same observable in both conditions.
Measure switch closure and optical crossing on a common clock, or calibrate the offset and uncertainty between instruments. Record the scan position, display mode, refresh behavior, rendering and generated-frame rates, action acceptance and the game’s input interface. Use camera footage or a trusted game marker to verify that the optical transition belongs to the intended action. Optical techniques for button-equipped systems and external latency instruments are established [15, 16].
Randomly counterbalance baseline and hook within matched blocks and vary input phase. Capture presses of multiple durations, including short ones near the original poll boundary. If the game offers an event FIFO, test whether two transitions between frames remain separately actionable. Keep missed, wrong or late responses in the primary table. Reporting only successful events would allow an accelerator to appear faster by suppressing difficult cases. Include an unpaced control and a system that already schedules work just in time.
A decisive positive result would show reduced switch-to-correct-photon time, preserved correctness and comparable output cadence for the declared workload. A decisive counterexample to the pulse theorem would be a valid trace with W(g) ≤ w and an actual width-w pulse seen by the baseline but unseen by the candidate by the stated deadline. A counterexample to the scheduling theorem would be a cyclic binary schedule with fewer lost starts than a single late block at the same duty, width and fixed slots.
Hardware evidence can also invalidate the engineering intervention without refuting the mathematics. If a probe accepts movable waiting while an action marker remains fixed, the presenting thread is not moving that action’s effective cut. If a rarely measured workload starts missing optical deadlines, the local calibration no longer predicts the future. Both findings are useful outcomes. They identify whether further progress requires a better controller, an input-side marker, a different display boundary or cooperation from the game.
Reproducing and applying the results
For a player. The small drop-in package contains the Windows add-on, Linux launcher, Linux SDL2 shared object and a short installation note. The Windows add-on needs a host that allows full ReShade add-ons. The Linux launcher targets dynamically linked SDL2 applications. Close the application before changing its add-on files. Neither route requires modifying a game’s source code. An application owner can expose a supported presentation or input boundary on additional platforms.
For a game developer. The core function returns the requested post-return delay in microseconds. Keep the event FIFO or timestamped input history if game semantics depend on brief transitions. Expose a pair consisting of the last consumed input timestamp and the time the corresponding result reaches a named endpoint. Feed traces from paired runs to the width and grace comparator. Use the optional read-repair solver when only a finite catalogue of actions can affect the rule.
For a researcher. Start with results/grace_example.json. The command in the kit’s README prints the critical width, the exact deadline spectrum and a missed-tap witness for a requested width. The phase-schedule calculator reports the constant-phase and switching components separately. Changing the order of the same four late and four early frames reproduces the 20% and 8.75% examples. All numeric settings and denominators are provided.
| Independent reproduction | Entry point |
|---|---|
| Trace the theorem or obtain a failed pulse | src/coverage.py |
| Compare two phase arrangements | src/phase_schedule.py |
| Verify interval, uncertainty, repair and area results | verification/check_math.py |
| Verify varying-phase and binary optimality results | verification/check_sequences.py |
| Re-run the live Linux presentation experiment | verification/run_sdl.py |
| Rebuild and test native controller behavior | verification/check_gate.c and verification/check_reshade.c |
The package includes editable text, native source, every reported paced and unpaced release-run trace, pilot data, build instructions and hashes. The mathematics needs no particular graphics vendor, game or refresh rate. The binary adapter depends on the interface where it runs. When sampling times change, the relevant tests count which actions move forward, which disappear and whether the physical deadline moves with them.
Sources and implementation records
[1] ReShade project. Public add-on architecture, lifecycle, registration and installation. API reference and official distribution.
[2] ReShade project. Callback definitions and supported graphics operations. Event header and public ABI declarations.
[3] SDL project. SDL2 presentation boundaries and renderer synchronization. SDL_RenderPresent, SDL_GL_SwapWindow and SDL_RenderSetVSync.
[4] R. Yates, Y. Sun, D. Brown, S. Kaul, E. Modiano and S. Ulukus. Age of Information, an introduction and survey. IEEE Journal on Selected Areas in Communications, 2021. MIT record.
[5] A. Gyárfás. Combinatorics of Intervals, account of the greedy piercing construction and the interval min–max theorem. Article text.
[6] SDL project. Input queue access and producer behavior. SDL_PollEvent and SDL_PushEvent.
[7] Microsoft. Reduce latency with DXGI 1.3 swap chains. Technical documentation.
[8] NVIDIA. Reflex SDK, just-in-time rendering and late camera updates. Developer documentation.
[9] Special K project. Latent Sync, present timing and configurable delay bias. Official wiki.
[10] Libretro project. Frame delay and automatic frame delay in RetroArch. Release notes and latency guide.
[11] NIST. Bias caused by instrument drift and calibration designs for eliminating linear drift. Engineering statistics handbook.
[12] Microsoft. High-resolution waitable timer creation and platform support. Win32 reference.
[13] LatencyFleX project. Vendor-agnostic pacing middleware, limitations and timing jitter. Project documentation and source.
[14] C. A. Furia and M. Rossi. A theory of sampling for continuous-time metric temporal logic. ACM Transactions on Computational Logic, 2010. Article and DOI.
[15] G. Casiez et al. Characterizing Latency in Touch and Button-Equipped Interactive Systems. ACM UIST, 2017. Authors’ project page.
[16] NVIDIA. Understanding and Measuring PC Latency. Technical article.