📝 HEAD is 41% cheaper a draw than this session's baseline on every boot, and reaches 110-113 Hz on the three of six where the guest does not latch 60

crates/reims-vgpu, x86/Vulkan. No code change; six driven macos-13
sustained-animation boots at `bab39deb` (`/tmp/cs/head`) against the session's
own three-boot baseline at `69273d22` (`/tmp/cs/base69`). No guest kernel panic
on any of the six.

Per draw, pooled, disjoint on every boot of both sets:

                 HEAD              base69
  draw_us       14.00 (12.82-16.14)  23.85 (23.62-24.16)   -41 %
  engine_us      6.48 (5.79-7.60)    10.53 (10.23-10.58)   -38 %
  store_us       1.16 (0.98-1.34)     6.72 (6.70-6.87)     -83 %
  seed_us        0.43 (0.29-0.75)     1.87 (1.74-2.29)     -77 %
  duty           0.49 (0.33-0.64)     0.81 (0.81-0.82)
  flushes/25s     781 (273-1464)     21166 (21090-21300)

The shader front index of `13f7462f` is confirmed by its own instruments:
`pl_shader_us` **2 981 us/s against 63 062** — 21x — and `shader_hash_words`
**0**, against 60 108 `shader_hits` and 0 misses in the same window. It is the
whole of the `engine_us` fall from 7.71 (lazy writeback alone) to 5.79.

**Frames are bimodal and the mode is the guest's, not this device's.**

  h1 110.8 Hz  267.4 draws/frame   28 844 draws/s
  h5 113.2     265.4               29 963
  h6 110.9     267.2               28 641
  h2  58.6     257.1               15 068
  h3  58.7     257.6               15 167
  h4  59.0     257.4               15 083

Three boots reach 110-113 Hz against the baseline's 77.2-77.9. Three latch 59
Hz — and that is not this change: the eager arm produced the same ~257
draws-per-frame band at 59.6-60.2 Hz on four of its six boots in `/tmp/cs/key`,
and `drain::claim_display_vbl`'s own doc already describes it as "the
boot-to-boot 60-vs-120 split the user reports". The device is 41 % cheaper a
draw on the latched boots too; the guest simply asks for half as much work.

So the peak moved 78 -> 111 Hz and the *floor* did not move at all, which makes
the vblank latch the largest remaining inconsistency in this device and the next
thing to measure. `display_vbl` on the two classes differs in the direction that
suggests where to look: the latched boots report a higher `not_enabled` and a
lower `delivered` than the fast ones, but those totals are latched at a
power-of-two report point rather than summed, so the series and not the last
line is what has to be read.

Not verified: `shader_digest_hits` itself, which `f7bf9d9b` only added to the
census line after this chain's binary was pinned. `shader_hash_words=0` is the
stronger reading anyway — no words walked at all.
This commit is contained in:
Anees Iqbal committed 2026-08-11 13:22:14 +03:00
1 parent f7bf9d9b0d
commit 9b71873933

Diff Content Not Available