Card time by kind and top pipelines in release builds, card memory by holder, VICTORY_PROFILE in release, VICTORY_NATIVE_DUMP, VICTORY_PIX #4203
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!4203
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4202"
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?
@marquezlale-creator on GitHub · 2026-11-30 17:22 UTC · original
marquezlale-creator:pr/diagnostics→main· +1232 −827 · 43 files · 21 commits · closed without mergingWhat it changes
Diagnostics that found the causes of slow frames on an RTX 5070 this week, all off or log-only, nothing changed in what is drawn:
VICTORY_CARD_TIME=1(release builds): one frame in 60 is timed with timestamps on the card, and the log says the card time by kind of command (draws, indirect draws, dispatches, our argument clamps apart, alias copies, copies...) and the 16 title pipelines that took the most (with their hashes). It is what showed that folded programs cost up to 4 ms each and that the card, not the CPU, was the limit in foliage.VICTORY_ALIAS_DIRECT=1(in the same commit, off by default): R32_UINT <-> R9G9B9E5_SHAREDEXP alias copies texture to texture, without the buffer (D3D12 copies those bits as they are); 81 copies a frame for 8.4 ms of card time before.window_use, now in release). It showed that the card's growth was not the texture copies.VICTORY_PROFILEworks in release builds too (the sampler and its stacks were diagnostics-only;unwind_copyis built in release for it). Nothing runs without the variable. It found a lock convoy in an opt-in texture-queue switch in one run.VICTORY_NATIVE_DUMP=<folder>(withVICTORY_WAVE_WHY): the console code of wave64 programs on the form ladder as text, by offset, to read what the offsets in theWAVE64-RETRYlines point at. Written outside the repository, likeVICTORY_FOLD_DUMP; not a translation switch (added to the shader cache test's list).VICTORY_PIX=1: loads PIX's GPU capturer before the device is made, so PIX can attach to the running game.How it was tested
cargo testpassed for the crates it touches:cargo check -p victory --testsyes;cargo test -p victory-gpu card_timeyes.every_switch_of_the_translator_is_in_the_keyfails here as on main ("VICTORY_ORACLE_RUNS is not read by the translator any more"), not from this change;VICTORY_NATIVE_DUMPis in its list of switches that are not translation switches.Checked for overlap
VICTORY_GPU_TIMING_ALSO, diagnostics builds); this one is for release builds.🤖 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