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

Open
fiestorra wants to merge 2 commits from upstream-pr/1703 into main
fiestorra commented 2026-11-24 20:56:59 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-24T20:56:59Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6591250640 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1703). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-24T20:56:59Z. --- **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.
DenRakEiw commented 2026-11-24 22:02:00 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T21:57:44Z.

Review: APPROVED


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

<!-- greyfinch-sync:Marvisak/VIctory:review:6048059343 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1703#pullrequestreview-6048059343). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-24T21:57:44Z. **Review:** APPROVED --- 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).
catminou4 commented 2026-11-24 23:05:03 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T22:20:10Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:Marvisak/VIctory:review:6048314651 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1703#pullrequestreview-6048314651). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T22:20:10Z. **Review:** COMMENTED --- 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.
Marvisak commented 2026-11-25 04:06:58 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:34:58Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152048480 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1703#issuecomment-7152048480). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:34:58Z. --- <!-- 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)_
StExpeditus commented 2026-11-25 10:07:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by StExpeditus on 2026-11-25T09:17:21Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7158129355 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1703#issuecomment-7158129355). Originally posted by [StExpeditus](https://github.com/StExpeditus) on 2026-11-25T09:17:21Z. --- **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.
fiestorra commented 2026-11-26 13:04:26 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fiestorra on 2026-11-26T12:13:50Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7191734174 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1703#issuecomment-7191734174). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-11-26T12:13:50Z. --- **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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1703:upstream-pr/1703'
git switch 'upstream-pr/1703'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1703'
git switch 'upstream-pr/1703'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1703'
git switch 'upstream-pr/1703'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1703'
git switch 'main'
git merge --squash 'upstream-pr/1703'
git switch 'main'
git merge --ff-only 'upstream-pr/1703'
git switch 'main'
git merge 'upstream-pr/1703'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!1702
No description provided.