Skip to content

README: the GPU timing switch needs DRED for the per-command notes - #1703

Open
fiestorra wants to merge 1 commit into
Marvisak:mainfrom
fiestorra:docs/gpu-timing-needs-dred
Open

fiestorra wants to merge 1 commit into
Marvisak:mainfrom
fiestorra:docs/gpu-timing-needs-dred

Conversation

@fiestorra

Copy link
Copy Markdown
Contributor

One row of the README's debugging table is wrong, and it is the one that tells you where frame time goes

| `VICTORY_GPU_TIMING=1` | with the above, each list of a submission run and timed on its own; slow lists logged with their slowest commands |

Two things are off:

  1. "with the above" points at VICTORY_SKIP_PIPELINES. The switch it depends on is VICTORY_D3D12_DRED=1: HostList::note (crates/victory-gpu/src/host.rs, fn note) records a command's text and its timestamp only when dred_on(), and slowest() reads exactly those notes. So VICTORY_GPU_TIMING=1 alone runs each list on its own and warns about a slow one, but with no commands named.
  2. That is not a theory: on ffe310e, a 60-second boot with VICTORY_GPU_TIMING=1 and nothing else logs
WARN victory_gpu::host: slow host list ms=69 commands=0

while the same switch with VICTORY_D3D12_DRED=1 fills the notes. So the manual sends you to a dead end for the one diagnostic that would say which command took the time.

The patch is one row:

-| `VICTORY_GPU_TIMING=1` | with the above, each list of a submission run and timed on its own; slow lists logged with their slowest commands |
+| `VICTORY_GPU_TIMING=1` | each list of a submission run and timed on its own; slow lists are logged, and with `VICTORY_D3D12_DRED=1` their slowest commands are named too — the per-command notes come from that switch, so `VICTORY_GPU_TIMING` alone reports `commands=0` |

Checked with cargo xtask policy (asset policy: 154 files ok); no code changes, so nothing else to run.

While I was in that table: the selector I am adding in #1630 (VICTORY_D3D12_ADAPTER) is now documented there too, in that pull request, since a switch nobody knows about is a switch nobody uses.

No game data is involved.

Written with an AI assistant.

@DenRakEiw DenRakEiw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified locally merged onto origin/main (70564ae, Windows 11 x64):

  • cargo xtask policy — ok (asset policy: 175 files ok)

Clear 1-line README.md clarification that VICTORY_GPU_TIMING needs DRED for per-command notes. Looks good.

AI-assisted (Gemini 4 Neon).

zhaibingye added a commit to zhaibingye/VIctory that referenced this pull request Nov 24, 2026
github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 24, 2026

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static review only: apps/Windows-only — nothing compiles on macOS; source review of the diff.

README: GPU timing switch needs DRED for the precise counters. One-line doc fix.

@fiestorra
fiestorra force-pushed the docs/gpu-timing-needs-dred branch 2 times, most recently from 6285cd1 to 497e2ae Compare November 25, 2026 01:25
VICTORY_GPU_TIMING runs and times each list of a submission on its own, but
the notes that name its slowest commands come from VICTORY_D3D12_DRED
(HostList::note is behind dred_on), so with the timing switch alone a slow
list prints 'commands=0'. The row also said 'with the above', which pointed
at VICTORY_SKIP_PIPELINES.
@fiestorra
fiestorra force-pushed the docs/gpu-timing-needs-dred branch from 497e2ae to aeb85fa Compare November 25, 2026 01:43

Copy link
Copy Markdown
Owner

Automated triage for the maintainers.

Merge candidate. This corrects a misleading README row: "with the above" now points at VICTORY_SKIP_PIPELINES. In main, HostList::note in crates/victory-gpu/src/host.rs records commands only when dred_on(), and the slow-list warning logs commands from those notes, so without VICTORY_D3D12_DRED=1 you get commands=0 and no commands named, as the PR says. The new row is a bit long and could be shortened, but it is accurate. CI passes.


Generated by Claude Code

github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 25, 2026
@StExpeditus

Copy link
Copy Markdown

Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24. Branch at aeb85fa. cargo test --workspace --locked --no-fail-fast -> 696 passed, 5 failed, 10 ignored. The failures are the same 5 pre-existing NVIDIA 1M-view-heap-cap failures (also on main; see my reports on #2030 and #1940). Nothing introduced by this PR fails on this machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants