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

Open
github-bot wants to merge 2 commits from github-bot/gh-1703 into main AGit
Owner

@⁠fiestorra on GitHub · 2026-11-24 20:56 UTC · original
fiestorra:docs/gpu-timing-needs-dred → main · +1 −1 · 1 files · 2 commits · open

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.

**@⁠fiestorra** on GitHub · 2026-11-24 20:56 UTC · [original](https://github.com/Marvisak/VIctory/pull/1703) `fiestorra:docs/gpu-timing-needs-dred` → `main` · +1 −1 · 1 files · 2 commits · open **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: ```diff -| `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.
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.

(cherry picked from commit aeb85fab2cf8d9bb57c2e4aee5f7914854522097)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:42:12 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:34 UTC · original · edited 2026-11-26 01:23 UTC

Automated triage for the maintainers.

Needs work. The finding holds on main: HostList::note in crates/victory-gpu/src/host.rs records commands and their timestamps only when dred_on(), so slowest() has nothing to name without VICTORY_D3D12_DRED=1 (the comment on timing() says the same). But after the rebase the row in README.md still starts with "with the above", which points at VICTORY_SKIP_PIPELINES, the very error the description sets out to fix, and the row is now much longer.

What would make it a merge candidate: drop "with the above" and keep the addition short, e.g. "slow lists logged, with their slowest commands when VICTORY_D3D12_DRED=1 is also set".

CI: passing (check).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 03:34 UTC · [original](https://github.com/Marvisak/VIctory/pull/1703#issuecomment-7152048480) · edited 2026-11-26 01:23 UTC <!-- victory-triage v1 head=8ee3e0e600541fb9ad7cdba5d31c13a94216805b verdict=needs-work at=2026-11-26T01:23:46Z --> Automated triage for the maintainers. **Needs work.** The finding holds on `main`: `HostList::note` in `crates/victory-gpu/src/host.rs` records commands and their timestamps only when `dred_on()`, so `slowest()` has nothing to name without `VICTORY_D3D12_DRED=1` (the comment on `timing()` says the same). But after the rebase the row in `README.md` still starts with "with the above", which points at `VICTORY_SKIP_PIPELINES`, the very error the description sets out to fix, and the row is now much longer. What would make it a merge candidate: drop "with the above" and keep the addition short, e.g. "slow lists logged, with their slowest commands when `VICTORY_D3D12_DRED=1` is also set". CI: passing (`check`). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠StExpeditus on GitHub · 2026-11-25 09:17 UTC · original

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.

**@⁠StExpeditus** on GitHub · 2026-11-25 09:17 UTC · [original](https://github.com/Marvisak/VIctory/pull/1703#issuecomment-7158129355) **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.
Author
Owner

@⁠fiestorra on GitHub · 2026-11-26 12:13 UTC · original

Reworded as asked

The row now reads exactly the way you suggested, without "with the above":

VICTORY_GPU_TIMING=1 | each list of a submission run and timed on its own; slow lists logged, with their slowest commands when VICTORY_D3D12_DRED=1 is also set (without it the notes come out as commands=0); a device removal names the list it happened in and lists all its commands |

Head 8ddf399e. The parenthetical is the one thing I kept: it names what a reader sees when only the timing switch is on, so commands=0 does not look like a bug in the list.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-26 12:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/1703#issuecomment-7191734174) **Reworded as asked** The row now reads exactly the way you suggested, without "with the above": > `VICTORY_GPU_TIMING=1` | each list of a submission run and timed on its own; slow lists logged, with their slowest commands when `VICTORY_D3D12_DRED=1` is also set (without it the notes come out as `commands=0`); a device removal names the list it happened in and lists all its commands | Head `8ddf399e`. The parenthetical is the one thing I kept: it names what a reader sees when only the timing switch is on, so `commands=0` does not look like a bug in the list. Written with an AI assistant.
Author
Owner

@⁠DenRakEiw on GitHub · 2026-11-24 21:57 UTC · original · approved these changes

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).

**@⁠DenRakEiw** on GitHub · 2026-11-24 21:57 UTC · [original](https://github.com/Marvisak/VIctory/pull/1703#pullrequestreview-6048059343) · **approved these changes** 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).
Author
Owner

@⁠catminou4 on GitHub · 2026-11-24 22:20 UTC · original · reviewed

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.

**@⁠catminou4** on GitHub · 2026-11-24 22:20 UTC · [original](https://github.com/Marvisak/VIctory/pull/1703#pullrequestreview-6048314651) · **reviewed** 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.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1703/head:github-bot/gh-1703'
git switch 'github-bot/gh-1703'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1703'
git switch 'github-bot/gh-1703'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1703'
git switch 'github-bot/gh-1703'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1703'
git switch 'main'
git merge --squash 'github-bot/gh-1703'
git switch 'main'
git merge --ff-only 'github-bot/gh-1703'
git switch 'main'
git merge 'github-bot/gh-1703'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1703
No description provided.