README: say VICTORY_GPU_TIMING's times are the mode's, not a normal frame's (FIND-29) #2934

Open
github-bot wants to merge 1 commit from github-bot/gh-2934 into main AGit
Owner

@⁠Jackster on GitHub · 2026-11-26 00:32 UTC · original
Jackster:docs/gpu-timing-caveat → main · +1 −1 · 1 files · 1 commits · open

FIND-29: VICTORY_GPU_TIMING cannot give absolute GPU times. With it on, each list of a submission is submitted and waited for on its own, so the same menu frame goes from about 33 ms to 550-600 ms — the ranking it produces still points at the right draws, but its milliseconds are that mode's, not the GPU's. Nothing said so beside the switch.

Change

One row of the diagnostics table in README.md: after the existing description, it now says the times belong to this mode and should be compared with each other, not with frame times measured without the switch. No code changes.

What was deliberately left alone

  • No machine-specific numbers. "(a 33 ms menu frame about 550-600 ms)" was one scene on one machine; "a frame takes many times longer" carries the point and does not age.
  • No claim about markers. The per-command notes need VICTORY_D3D12_DRED=1; without it the timing reports commands=0. Saying so is PR #1703's change, on this same row, so it is not duplicated here.
  • "with the above" is untouched for the same reason: the row above is VICTORY_SKIP_PIPELINES, not DRED, and fixing that is also #1703.

Conflict note

#1703, #1723 and #1735 all edit this same row. #1703 changes only its opening (the DRED qualification), so this text should rebase onto it cleanly; #1735 would replace the row with a different design (a timestamp around every command, aggregated per pipeline) and would make this caveat moot — worth deciding the landing order rather than merging all four as they stand.

Verified

  • Diff is one line in README.md, nothing else.
  • Based on upstream/main 63bcca4 (nothing moved under it).
  • cargo xtask policy: 191 files ok.
  • No game files; no title data.

Claimed in #1633: #1633

AI-assisted (drafted with an AI coding agent).

**@⁠Jackster** on GitHub · 2026-11-26 00:32 UTC · [original](https://github.com/Marvisak/VIctory/pull/2934) `Jackster:docs/gpu-timing-caveat` → `main` · +1 −1 · 1 files · 1 commits · open FIND-29: `VICTORY_GPU_TIMING` cannot give absolute GPU times. With it on, each list of a submission is submitted and waited for on its own, so the same menu frame goes from about 33 ms to 550-600 ms — the ranking it produces still points at the right draws, but its milliseconds are that mode's, not the GPU's. Nothing said so beside the switch. ### Change One row of the diagnostics table in `README.md`: after the existing description, it now says the times belong to this mode and should be compared with each other, not with frame times measured without the switch. No code changes. ### What was deliberately left alone * **No machine-specific numbers.** "(a 33 ms menu frame about 550-600 ms)" was one scene on one machine; "a frame takes many times longer" carries the point and does not age. * **No claim about markers.** The per-command notes need `VICTORY_D3D12_DRED=1`; without it the timing reports `commands=0`. Saying so is PR #1703's change, on this same row, so it is not duplicated here. * **`"with the above"` is untouched** for the same reason: the row above is `VICTORY_SKIP_PIPELINES`, not DRED, and fixing that is also #1703. ### Conflict note #1703, #1723 and #1735 all edit this same row. #1703 changes only its opening (the DRED qualification), so this text should rebase onto it cleanly; #1735 would replace the row with a different design (a timestamp around every command, aggregated per pipeline) and would make this caveat moot — worth deciding the landing order rather than merging all four as they stand. ### Verified * Diff is one line in `README.md`, nothing else. * Based on `upstream/main` `63bcca4` (nothing moved under it). * `cargo xtask policy`: 191 files ok. * No game files; no title data. Claimed in #1633: https://git.gtahub.st/github/Marvisak--VIctory/issues/1633 AI-assisted (drafted with an AI coding agent).
With the switch on, each list of a submission is submitted and waited for on
its own, so a frame takes many times longer than without it. The ranking it
gives still holds, but the per-list times include those waits, so they say
nothing about a frame's GPU time; say so beside the switch.

Left to PR #1703: the row's "with the above" is the row above it
(VICTORY_SKIP_PIPELINES), not VICTORY_D3D12_DRED, which the per-command
notes need. That is that pull request's change, not this one.

FIND-29 (#1633). No game files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vdn8eHRsZMnNozkza6j3Dv
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:17:51 +00:00
Author
Owner

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

Verified head 1099ad10ca94 merged cleanly onto main (63bcca43c6a0):

  • Checked against crates/victory-gpu/src/host.rs:1256-1315: when VICTORY_GPU_TIMING=1 (timing()) is enabled, submission splits command lists into single-list groups and runs ExecuteCommandLists -> Signal -> SetEventOnCompletion -> WaitForSingleObject(INFINITE) per list, draining the GPU between lists. The updated README.md wording accurately clarifies that reported times reflect this serialized mode rather than normal batched frames.
  • cargo xtask policy (191 files ok) and cargo test --locked -p xtask -- repository_passes_policy (1/1) pass.
  • Note for maintainers: #2927 also documents VICTORY_GPU_TIMING overhead in README.md, so only one of the two wording edits will be needed.

Looks accurate and clean.

**@⁠fuzeofficlal** on GitHub · 2026-11-26 00:41 UTC · [original](https://github.com/Marvisak/VIctory/pull/2934#issuecomment-7179016219) Verified head `1099ad10ca94` merged cleanly onto `main` (`63bcca43c6a0`): - Checked against `crates/victory-gpu/src/host.rs:1256-1315`: when `VICTORY_GPU_TIMING=1` (`timing()`) is enabled, submission splits command lists into single-list groups and runs `ExecuteCommandLists` -> `Signal` -> `SetEventOnCompletion` -> `WaitForSingleObject(INFINITE)` per list, draining the GPU between lists. The updated `README.md` wording accurately clarifies that reported times reflect this serialized mode rather than normal batched frames. - `cargo xtask policy` (`191 files ok`) and `cargo test --locked -p xtask -- repository_passes_policy` (1/1) pass. - Note for maintainers: `#2927` also documents `VICTORY_GPU_TIMING` overhead in `README.md`, so only one of the two wording edits will be needed. Looks accurate and clean.
Author
Owner

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

Correct and worth saying in the doc. VICTORY_GPU_TIMING serialises each list with its own submit+wait, so the numbers it prints are per-list wall times of that mode — the 33 ms → 550-600 ms frame inflation is the expected signature. Ranking draws/lists against each other remains valid; comparing against an uninstrumented frame does not. LGTM.

**@⁠kotekompotek** on GitHub · 2026-11-26 00:53 UTC · [original](https://github.com/Marvisak/VIctory/pull/2934#issuecomment-7179215332) Correct and worth saying in the doc. `VICTORY_GPU_TIMING` serialises each list with its own submit+wait, so the numbers it prints are per-list wall times of that mode — the 33 ms → 550-600 ms frame inflation is the expected signature. Ranking draws/lists against each other remains valid; comparing against an uninstrumented frame does not. LGTM.
Author
Owner

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

Automated triage for the maintainers.

Proposed close. No value: README fiddling. This lengthens the VICTORY_GPU_TIMING row in README.md to say its times belong to the timing mode. The row already says each list of a submission is "run and timed on its own", which is why those times differ from normal frames; the added sentences repeat that and make a table cell that should stay short much longer.

CI: passing.

This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the triage: proposed close label.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-26 04:25 UTC · [original](https://github.com/Marvisak/VIctory/pull/2934#issuecomment-7182589824) <!-- victory-triage v1 head=1099ad10ca94e6a9da7098b3931e2da30663e335 verdict=proposed-close at=2026-11-26T04:25:51Z --> Automated triage for the maintainers. **Proposed close.** **No value: README fiddling.** This lengthens the `VICTORY_GPU_TIMING` row in `README.md` to say its times belong to the timing mode. The row already says each list of a submission is "run and timed on its own", which is why those times differ from normal frames; the added sentences repeat that and make a table cell that should stay short much longer. CI: passing. This PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the `triage: proposed close` label. --- _Generated by [Claude Code](https://claude.ai/code)_
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/2934/head:github-bot/gh-2934'
git switch 'github-bot/gh-2934'

Merge

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