GPU: make command-list timestamps opt-in in production builds #3080

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

@⁠ghptc on GitHub · 2026-11-29 19:54 UTC · original
ghptc:perf/card-meter-opt-in → main · +5 −6 · 1 files · 1 commits · open

Summary

#1626 (aea3bd82) enabled card-meter timing in all builds so ordinary support logs include GPU time by command-list type. Timing a list adds two GPU timestamp queries and a resolve. Make that instrumentation opt-in in production builds. Keep it on by default in builds with the diagnostics feature.

  • Set VICTORY_CARD_METER=1 to restore list timing on any platform, including native Windows.
  • Set VICTORY_CARD_METER_PIPELINES=1 to request both list and pipeline timing.
  • Explicit VICTORY_CARD_METER=0 disables both, even in diagnostics builds.

Credits to #1626 for the original meter. The diagnostics-based default has prior art in fxceless/victory-fork a253706. fxceless #902 separately gates the meter on frame logging.

Verification

The option check extracted on() and pipelines() from this patch and passed 32 fresh-process combinations across production and diagnostics configurations.

The physical control used an RTX 5070 under Proton Experimental and the same 87d0d454 test binary with explicit toggles. The procedural scene used 7,000 draws and 221 command lists per frame. Each mode contributed 16 GPU samples per run.

Order GPU work, median (ms) Recording start to observed fence completion, median (ms)
Off → list timing 0.801 → 2.540 4.298 → 6.208
List timing → off 3.200 → 0.791 6.623 → 4.573

The RGBA and D32 output hashes matched in both orders. This measures the instrumentation cost in one procedural workload under Proton. The production policy applies on every OS. Native Windows performance was not measured.

**@⁠ghptc** on GitHub · 2026-11-29 19:54 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3080) `ghptc:perf/card-meter-opt-in` → `main` · +5 −6 · 1 files · 1 commits · open ## Summary #1626 (`aea3bd82`) enabled card-meter timing in all builds so ordinary support logs include GPU time by command-list type. Timing a list adds two GPU timestamp queries and a resolve. Make that instrumentation opt-in in production builds. Keep it on by default in builds with the `diagnostics` feature. - Set `VICTORY_CARD_METER=1` to restore list timing on any platform, including native Windows. - Set `VICTORY_CARD_METER_PIPELINES=1` to request both list and pipeline timing. - Explicit `VICTORY_CARD_METER=0` disables both, even in diagnostics builds. Credits to #1626 for the original meter. The diagnostics-based default has prior art in [fxceless/victory-fork `a253706`](https://github.com/fxceless/victory-fork/blob/a25370661ed1343e2f2d5e79669ec8db4e60dc68/crates/victory-gpu/src/cardmeter.rs#L84-L91). [fxceless #902](https://github.com/fxceless/victory-fork/pull/902) separately gates the meter on frame logging. ## Verification The option check extracted `on()` and `pipelines()` from this patch and passed 32 fresh-process combinations across production and diagnostics configurations. The physical control used an RTX 5070 under Proton Experimental and the same `87d0d454` test binary with explicit toggles. The procedural scene used 7,000 draws and 221 command lists per frame. Each mode contributed 16 GPU samples per run. | Order | GPU work, median (ms) | Recording start to observed fence completion, median (ms) | | --- | ---: | ---: | | Off → list timing | 0.801 → 2.540 | 4.298 → 6.208 | | List timing → off | 3.200 → 0.791 | 6.623 → 4.573 | The RGBA and D32 output hashes matched in both orders. This measures the instrumentation cost in one procedural workload under Proton. The production policy applies on every OS. Native Windows performance was not measured.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 19:59:56 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/3080/head:github-bot/gh-3080'
git switch 'github-bot/gh-3080'

Merge

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