Skip to content

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

Open
Jackster wants to merge 1 commit into
Marvisak:mainfrom
Jackster:docs/gpu-timing-caveat
Open

Jackster wants to merge 1 commit into
Marvisak:mainfrom
Jackster:docs/gpu-timing-caveat

Conversation

@Jackster

Copy link
Copy Markdown

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

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 (comment)

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

…rame's

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 Marvisak#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 (Marvisak#1633). No game files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vdn8eHRsZMnNozkza6j3Dv
@fuzeofficlal

Copy link
Copy Markdown
Contributor

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.

@kotekompotek

Copy link
Copy Markdown

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.

Copy link
Copy Markdown
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants