📝 Forty interleaved boots say the vblank ordering does not move the latch, and that three boots in ten lose half their frame rate

Component: `crates/reims-vgpu` — doc on
`runtime::drain::signal_display_refresh_classes`. No behaviour change.

cad67521 established that a boot's frame rate is a Bernoulli draw taken in one
early window, not a rate, and said the ordering fix of cf77ab7e had never been
ranked against the right outcome. This ranks it: forty interleaved driven
macos-13 boots, twenty an arm, quiesced host, no guest panic and no boot lost.

             latched fast   latched slow   rate
    old            13             7        0.65
    new            15             5        0.75

p is about 0.7. **The ordering does not change the latch.** The 9-in-11 against
4-in-9 that the earlier non-interleaved runs hinted at was the non-interleaving
showing through — which is the outcome the runner named in advance as the thing
that would falsify the hypothesis, so it is recorded rather than explained away.

The fix is kept on its own merits and the doc now says which those are: a tick
that delivers nothing has no business spending the interval, the behaviour is
unit-tested against a hand-restored old ordering, and it raises the delivered
rate within a boot. It is not a frame-rate fix and must not be quoted as one.

The run also gives the base rate this rail actually runs at, which nothing here
had measured: **28 fast to 12 slow across 40 boots**, so about three boots in ten
lose half their frame rate. The two populations are sharply bimodal — every slow
boot presented 59.8-60.5 Hz and every fast one 94.8-117.0, nothing in between —
which is what makes the label unambiguous and needs no threshold argument.

That bimodality is worth more than the negative result. It means a per-second
reading pooled across boots is a mixture of two populations, and forty boots is
the order of sample size a claim about the latch needs. Twelve an arm would not
have resolved a real 0.44-to-0.82 effect either.

Verified: clippy `-D warnings` clean on the Vulkan arm. Forty boots as above,
scored on `present_hz` with a panic grep per boot.

Not verified: no cause for the slow latch is claimed. macos-13 / x86 / Vulkan /
one discrete host only, and the base rate is a property of this rail on this
machine — it is not portable to another rail or another host.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Anees IqbalandClaude committed 2026-08-11 22:18:05 +03:00
1 parent cad67521ea
commit 7e68dba216
1 file changed
+22 -3
+22 -3
View File
@@ -5236,9 +5236,28 @@ pub(crate) fn display_event_enabled<H: HostMemory>(host: &H, gpa: u64, event_mas
/// measures the rate it is served across **one early window**, latches 60 Hz or
/// 120 Hz from it, and never revisits the answer however fast it is served
/// afterwards. So this ordering can only matter to the extent it changes what
/// that one window reads, which is a probability over boots and not a rate, and
/// n=3 an arm cannot measure one. Ranking this change on steady-state
/// `present_hz` was the wrong instrument.
/// that one window reads, which is a probability over boots and not a rate.
///
/// **It does not change it.** Forty interleaved driven macos-13 boots, twenty an
/// arm, no guest panic and no boot lost:
///
/// ```text
/// latched fast latched slow rate
/// old 13 7 0.65
/// new 15 5 0.75
/// ```
///
/// That is p≈0.7 — nothing. The 9-in-11 against 4-in-9 that earlier runs hinted
/// at was the non-interleaving showing through, which is exactly what the run
/// was set up to falsify. So this ordering is kept on its own merits: it is what
/// the contract says (a tick that delivers nothing has no business spending the
/// interval), it is unit-tested, and it raises the delivered rate within a boot.
/// It is not a frame-rate fix and must not be quoted as one.
///
/// The same forty boots put the base rate at **28 fast to 12 slow**, so about
/// three boots in ten lose half their frame rate on this rail, and they are
/// sharply bimodal — every slow boot presented 59.8-60.5 Hz and every fast one
/// 94.8-117.0, with nothing in between.
///
/// Reading the mask first cannot deliver faster than the advertised rate —
/// [`claim_display_vbl`] still gates every delivery on a full interval having