Optimised build flags (-O3 -march=native) eliminate periodic frame-pacing alternations — RDNA3 field data #10

Open
opened 2026-12-02 12:38:04 +00:00 by github-bot · 0 comments
Owner

@⁠thedee8086 on GitHub · 2026-12-01 12:53 UTC · original

Optimised build flags (-O3 -march=native) eliminate periodic frame-pacing alternations — RDNA3 field data

Field observation on an RDNA3 desktop card (24 GB, ReBAR on), running the title at 2560x1440 with the upscaler + frame generation, using the runtime's own 5-second frame-pacing telemetry (mean/max/alternations per window) over identical scripted free-roam routes.

Symptom (stock build, meson --buildtype release, default c_args): the title's frame limiter locks free roam at 33.33 ms, but stock builds show periodic pacing alternations — 66-75 alternations across ~170 measured windows, with worst 5-second windows of 179-246 ms. Checked per-window: the alternation pattern recurs mid-run (14/34 windows), so it is not warm-up. Alternating windows have means of 35-37 ms against the locked 33.33.

Result (same code, mesa AND vkd3d-proton rebuilt with -Dc_args='-O3 -march=native'): 0 alternations across ~204 windows in every warm run, worst 5-second window 99-114 ms. Medians/p90/long-frame percentages are identical by construction (the title's limiter caps them), so the signal is entirely in the tails and pacing.

Isolation: the separate lazy-L2 gate PR is not the variable — with the gate OFF, the rebuilt mesa still shows 0 alternations. Reading: a periodic CPU-side stall in the submit path that the optimised build removes (vectorised paths on a current high-end desktop CPU).

Suggestion: a short optional note in the build docs that local source builds benefit from -O3 -march=native (local builds only — not appropriate for distributed packages). Not claiming an FPS win: on desktop the medians are limiter-capped; the claim is elimination of the periodic pacing hitches and roughly 2x better worst-window.

Happy to re-run any variant combination the maintainer wants measured.

**@⁠thedee8086** on GitHub · 2026-12-01 12:53 UTC · [original](https://github.com/Skrills68/Valhalla-xmem/issues/10) ## Optimised build flags (-O3 -march=native) eliminate periodic frame-pacing alternations — RDNA3 field data Field observation on an RDNA3 desktop card (24 GB, ReBAR on), running the title at 2560x1440 with the upscaler + frame generation, using the runtime's own 5-second frame-pacing telemetry (mean/max/alternations per window) over identical scripted free-roam routes. **Symptom (stock build, `meson --buildtype release`, default `c_args`):** the title's frame limiter locks free roam at 33.33 ms, but stock builds show periodic pacing alternations — 66-75 alternations across ~170 measured windows, with worst 5-second windows of 179-246 ms. Checked per-window: the alternation pattern recurs mid-run (14/34 windows), so it is not warm-up. Alternating windows have means of 35-37 ms against the locked 33.33. **Result (same code, mesa AND vkd3d-proton rebuilt with `-Dc_args='-O3 -march=native'`):** 0 alternations across ~204 windows in every warm run, worst 5-second window 99-114 ms. Medians/p90/long-frame percentages are identical by construction (the title's limiter caps them), so the signal is entirely in the tails and pacing. **Isolation:** the separate lazy-L2 gate PR is not the variable — with the gate OFF, the rebuilt mesa still shows 0 alternations. Reading: a periodic CPU-side stall in the submit path that the optimised build removes (vectorised paths on a current high-end desktop CPU). Suggestion: a short optional note in the build docs that local source builds benefit from `-O3 -march=native` (local builds only — not appropriate for distributed packages). Not claiming an FPS win: on desktop the medians are limiter-capped; the claim is elimination of the periodic pacing hitches and roughly 2x better worst-window. Happy to re-run any variant combination the maintainer wants measured.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 12:38:04 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.