docs: explain GPU timing overhead #2927

Open
github-bot wants to merge 4 commits from github-bot/gh-2927 into main AGit
Owner

@⁠FR4NC7S on GitHub · 2026-11-26 00:16 UTC · original
FR4NC7S:docs/gpu-timing-warning → main · +1 −1 · 1 files · 4 commits · open

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.

**@⁠FR4NC7S** on GitHub · 2026-11-26 00:16 UTC · [original](https://github.com/Marvisak/VIctory/pull/2927) `FR4NC7S:docs/gpu-timing-warning` → `main` · +1 −1 · 1 files · 4 commits · open ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:17:42 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-26 04:24 UTC · original

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

**@⁠Marvisak** on GitHub · 2026-11-26 04:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/2927#issuecomment-7182568013) <!-- 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)_
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-26 00:24 UTC · original · reviewed

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.
**@⁠fuzeofficlal** on GitHub · 2026-11-26 00:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/2927#pullrequestreview-6066882926) · **reviewed** 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.
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-26 00:26 UTC · original · reviewed

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

**@⁠kotekompotek** on GitHub · 2026-11-26 00:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/2927#pullrequestreview-6066896671) · **reviewed** Accurate clarification — per-list submit+wait serializes what the GPU could overlap, so the numbers measure submission overhead, not GPU time. LGTM.
This pull request can be merged automatically.
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/2927/head:github-bot/gh-2927'
git switch 'github-bot/gh-2927'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2927'
git switch 'github-bot/gh-2927'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2927'
git switch 'github-bot/gh-2927'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2927'
git switch 'main'
git merge --squash 'github-bot/gh-2927'
git switch 'main'
git merge --ff-only 'github-bot/gh-2927'
git switch 'main'
git merge 'github-bot/gh-2927'
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!2927
No description provided.