Card meter: VICTORY_CARD_METER_ROWS=<n>, how many of the largest pipelines its per-pipeline table says (48 by default) #4229
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4229
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4228"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Denkiyaa on GitHub · 2026-11-30 17:36 UTC · original
Denkiyaa:pr/card-meter-rows→main· +780 −821 · 33 files · 11 commits · closed without mergingFixes #
What it changes
A diagnostic only. The card meter's per-pipeline table (
VICTORY_CARD_METER_PIPELINES=1) logs the 48 pipelines that took the most of the card's time over 256 frames. A family of programs (the ray-traced light's gathers, the volumetrics, one effect's passes) is spread over many pipelines, most of them below the 48th, so its share of the card cannot be summed from the log.VICTORY_CARD_METER_ROWS=<n>says how many rows the table logs (read once; 48 by default, so nothing changes unless it is set; 0 or a value that does not parse keeps 48; a large number gives every row). With every row, the card's time can be summed by program family outside the layer, from the names in the log.One finding from using it, on the PC below: one compute program,
CS_TransmissionVolumetrics_Tiled_LocalLights, took 15-22 ms of the card a dispatch when it ran, and was the largest part of what slow launches (17 rendered frames a second instead of 23-25) had over normal ones. Main has since left both water-light programs out on 32-lane cards (VICTORY_WATER_LIGHT), so that one is settled there; the switch is for the next such question.File:
crates/victory-gpu/src/cardmeter.rs(7 lines).How it was tested
VICTORY_CARD_METER_PIPELINES=1and a largeVICTORY_CARD_METER_ROWSto sum the card's time by program family; measured on a branch of this repository carrying other ports besides this change. Not run on Windows.cargo testpassed for the crates it touches: no, not run.victory-gpu's tests need Windows, and this was prepared on Linux. What was run:cargo xwin clippy -p victory-gpu --all-targets --locked --target x86_64-pc-windows-msvc -- -D warningson this branch (cut from main84bd61e2): it builds; the only two findings are main's own, in files this PR does not touch (method ranged is never usedinshadow.rs:7197,manual implementation of .is_multiple_of()inhost.rs:5092), and with those two lints allowed it passes with no other warning.cargo xtask policy --stagedpassed.Checked for overlap
VICTORY_GPU_TIMING_ALSO, the same need for the timing run's top-40 list incopystat.rs; this is the card meter's table, which needs no timing run); #3671 touchescardmeter.rsabove this line (sample retirement), no textual overlap expected; #2852 (timed pipeline rebinds, inhost.rs) feeds the same table; #4203 adds card time by kind in release builds in another module (card_time.rs).Written with Claude Code (Claude Opus 5.5): the measurements were run by me on my PC; the code and this text were prepared with it.
🤖 Generated with Claude Code
@trustno1-coder on GitHub · 2026-12-01 18:45 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed