docs: explain GPU timing overhead #2925

Open
FR4NC7S wants to merge 4 commits from upstream-pr/2927 into main
FR4NC7S commented 2026-11-26 00:16:42 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by FR4NC7S on 2026-11-26T00:16:42Z.


What

Clarifies that VICTORY_GPU_TIMING=1 submits each command list separately and waits before moving to the next. Per-command durations are GPU timestamps; the serialized waits make the overall run much slower and its whole-frame times unrepresentative. With VICTORY_D3D12_DRED=1, per-command notes support GPU-timestamp rankings and help identify the list and commands in device-removal reports.

Resolves FIND-29 from #1633.

Checks

  • git diff --check passed.
  • Documentation-only change; no build or tests run.

AI-assisted by OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6616524842 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2927). Originally posted by [FR4NC7S](https://github.com/FR4NC7S) on 2026-11-26T00:16:42Z. --- ## What Clarifies that `VICTORY_GPU_TIMING=1` submits each command list separately and waits before moving to the next. Per-command durations are GPU timestamps; the serialized waits make the overall run much slower and its whole-frame times unrepresentative. With `VICTORY_D3D12_DRED=1`, per-command notes support GPU-timestamp rankings and help identify the list and commands in device-removal reports. Resolves `FIND-29` from #1633. ## Checks - `git diff --check` passed. - Documentation-only change; no build or tests run. AI-assisted by OpenAI Codex.
fuzeofficlal commented 2026-11-26 01:03:49 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T00:24:30Z.

Review: COMMENTED


Verified head 6e61f449 cleanly on origin/main (63bcca43).

Documentation Accuracy Review

  • The updated description for VICTORY_GPU_TIMING=1 accurately reflects crates/victory-gpu/src/host.rs:338-341, 514-553 (per-list submission + synchronous WaitForSingleObject(INFINITE) + slowest-command ranking).
  • Minor pre-existing nit (non-blocking): The entry still opens with "with the above", which currently sits directly below VICTORY_SKIP_PIPELINES (line 211) rather than VICTORY_D3D12_DRED=1 (line 210), even though host.rs:335-336, 981 keys off dred_on(). Naming with VICTORY_D3D12_DRED=1 explicitly would make it even clearer.
  • git diff --check & cargo xtask policy (191 files ok): clean.
<!-- greyfinch-sync:Marvisak/VIctory:review:6066882926 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2927#pullrequestreview-6066882926). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T00:24:30Z. **Review:** COMMENTED --- Verified head `6e61f449` cleanly on `origin/main` (`63bcca43`). ### Documentation Accuracy Review - The updated description for `VICTORY_GPU_TIMING=1` accurately reflects `crates/victory-gpu/src/host.rs:338-341, 514-553` (per-list submission + synchronous `WaitForSingleObject(INFINITE)` + slowest-command ranking). - **Minor pre-existing nit (non-blocking)**: The entry still opens with `"with the above"`, which currently sits directly below `VICTORY_SKIP_PIPELINES` (line 211) rather than `VICTORY_D3D12_DRED=1` (line 210), even though `host.rs:335-336, 981` keys off `dred_on()`. Naming `with VICTORY_D3D12_DRED=1` explicitly would make it even clearer. - `git diff --check` & `cargo xtask policy` (`191 files ok`): clean.
kotekompotek commented 2026-11-26 01:03:49 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-26T00:26:28Z.

Review: COMMENTED


Accurate clarification — per-list submit+wait serializes what the GPU could overlap, so the numbers measure submission overhead, not GPU time. LGTM.

<!-- greyfinch-sync:Marvisak/VIctory:review:6066896671 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2927#pullrequestreview-6066896671). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-26T00:26:28Z. **Review:** COMMENTED --- Accurate clarification — per-list submit+wait serializes what the GPU could overlap, so the numbers measure submission overhead, not GPU time. LGTM.
Marvisak commented 2026-11-26 05:04:08 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T04:24:30Z.


Automated triage for the maintainers.

Needs work. Replacing the old "with the above" in the VICTORY_GPU_TIMING README row is a real improvement, but the new text does not match victory-gpu/src/host.rs: in timing() and the submit loop, splitting a submission into separately waited lists happens with VICTORY_GPU_TIMING alone, and VICTORY_D3D12_DRED is only needed for per-command notes. The per-command times come from GPU timestamps, so "not GPU execution times" is misleading; what is not representative is whole-frame time, because each list is waited for. Please reword the row along those lines, keeping it short.

CI: passing.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7182568013 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2927#issuecomment-7182568013). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-26T04:24:30Z. --- <!-- victory-triage v1 head=de305e774458926ccace3583da117a1764b0397d verdict=needs-work at=2026-11-26T04:24:21Z --> Automated triage for the maintainers. **Needs work.** Replacing the old "with the above" in the `VICTORY_GPU_TIMING` README row is a real improvement, but the new text does not match `victory-gpu/src/host.rs`: in `timing()` and the submit loop, splitting a submission into separately waited lists happens with `VICTORY_GPU_TIMING` alone, and `VICTORY_D3D12_DRED` is only needed for per-command notes. The per-command times come from GPU timestamps, so "not GPU execution times" is misleading; what is not representative is whole-frame time, because each list is waited for. Please reword the row along those lines, keeping it short. CI: passing. --- _Generated by [Claude Code](https://claude.ai/code)_
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/2927:upstream-pr/2927'
git switch 'upstream-pr/2927'

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/2927'
git switch 'upstream-pr/2927'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2927'
git switch 'upstream-pr/2927'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2927'
git switch 'main'
git merge --squash 'upstream-pr/2927'
git switch 'main'
git merge --ff-only 'upstream-pr/2927'
git switch 'main'
git merge 'upstream-pr/2927'
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!2925
No description provided.