📝 The boots that present 60 frames a second selected the 120 Hz mode, same as the ones that present 117
Component: `crates/reims-vgpu` — doc on `runtime::drain::fill_display_descriptor`, plus `kb/harness/animrefresh.sh` (gitignored) as the probe. No behaviour change. About three macos-13 boots in ten present ~60 frames a second for their whole life rather than ~100-117 (7e68dba2banded it at 12 slow in 40). That reads exactly like a guest selecting a 60 Hz mode out of the timing table this function fills, and `fill_display_descriptor`'s doc asserted the opposite without ever having been asked. Asked now. Twelve driven macos-13 boots, each queried over ssh while still up, after the probe had produced the fast/slow label: boots presented system_profiler SPDisplaysDataType 5 fast 107 - 119 Hz UI Looks like: 1920 x 1080 @ 120.00Hz 7 slow 59.9 - 61 Hz UI Looks like: 1920 x 1080 @ 120.00Hz Every boot in both populations reports the same mode at 120.00 Hz. Mode negotiation is not where the split comes from, the timing table is doing its job, and a fix aimed at its elements would have been aimed at nothing. This is worth a commit because it closes a whole class of cause rather than narrowing one. Combined with what49701ba3ruled out — the limiter, the claim ordering, and the early delivery window — the split now has to live downstream of mode selection, in what the guest's compositor does with a 120 Hz link it has correctly acquired. The probe is `AB_PROBE=animrefresh.sh`: it runs the tracked sustained-animation probe first so the label comes from the same boot, then queries the guest. Every guest command is bounded with a host-side `timeout` per AGENTS.md, and an empty capture is recorded as a failed query rather than as a device result. Verified: clippy `-D warnings` clean on the Vulkan arm; `cargo doc` intra-doc link pass clean for the link added. Twelve boots as above. Not verified: one of the twelve reported `present_hz=0.0` and is counted slow on that reading alone; its mode reading agrees with the rest either way. No cause is claimed, only a class excluded. macos-13 / x86 / Vulkan / one discrete host. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
49701ba36e
commit
8473b76222
1 file changed
+21
@@ -2596,6 +2596,27 @@ fn shared_w32<H: HostMemory + HostOps>(host: &mut H, gpa: u64, off: u64, v: u32,
|
||||
/// pixel width. Modes are 1920×1080, 1440×1080, 1280×1024 (apple-gfx A/B
|
||||
/// reference geometry) plus 3840×2160 (4K UHD), each advertised at
|
||||
/// `DISPLAY_REFRESH_HZ` (120 Hz), so the guest always latches the 120 Hz mode.
|
||||
///
|
||||
/// # "Always" is measured, and it holds on the boots that look like it does not
|
||||
///
|
||||
/// About three macos-13 boots in ten present ~60 frames a second for their whole
|
||||
/// life rather than ~100-117, which reads exactly like a guest that selected a
|
||||
/// 60 Hz mode from this table. It did not. Twelve driven boots, asked over ssh
|
||||
/// while still up what mode they were running:
|
||||
///
|
||||
/// ```text
|
||||
/// boots presented system_profiler SPDisplaysDataType
|
||||
/// 5 fast 107 - 119 Hz UI Looks like: 1920 x 1080 @ 120.00Hz
|
||||
/// 7 slow 59.9 - 61 Hz UI Looks like: 1920 x 1080 @ 120.00Hz
|
||||
/// ```
|
||||
///
|
||||
/// Every boot, both populations, the same mode and the same 120.00 Hz. So mode
|
||||
/// negotiation is not where the split comes from, this table is doing its job,
|
||||
/// and a fix aimed at the timing elements would be aimed at nothing.
|
||||
///
|
||||
/// That leaves the cause downstream of mode selection, in what the guest's
|
||||
/// compositor does with a 120 Hz link it has correctly acquired. `VBL_REPORT_
|
||||
/// EARLY` beside [`census::VblCensus`] records what else has been ruled out.
|
||||
/// Element 0 (1920×1080) stays the native/preferred format (+0x210/+0x212 double
|
||||
/// as NativeFormat*Pixels), so boot resolution is unchanged and 4K is an
|
||||
/// additional selectable mode; the dynamic scanout/present/host-window geometry
|
||||
|
||||
Reference in new issue
Block a user