Diagnostics: the card's clock counts list-translation waits on their own, and copystat gives bytes copied beside bytes looked at #387
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!387
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-387"
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?
@Jesper-Andersson on GitHub · 2026-11-26 22:02 UTC · original
Jesper-Andersson:diag-card-clock-lists→main· +59 −16 · 3 files · 2 commits · openFixes #366.
Two frame-line counters pointed the wrong way when looking for what sets the frame.
The card's clock (
host.rscard_clock_line) split the card's idle time into "the submitting thread was working" and "the rest while the title had not submitted". WithVICTORY_THIN=1(aplay.ps1default), a submission waits in the line of submissions (queue/behind.rs) until its lists are translated. The thread that serves the line is not "working" then, so that wait was counted as the title's.copystat's "copied from" lines summed the length of each refreshed range, not the bytes the refresh copied. In #367's runs one range read "~9.8x a frame, 1.79 GB a frame" in 2.6 ms, where about 43 MB a frame were copied.
Change
host.rs:TRANSLATING,translating(on)andtranslated(), kept likeWORKING/worked(). The clock takes the difference over each idle stretch into a fourth counter.nothing of ours queued X ms ..., Y ms of that while the submitting thread was working, Z ms while the line of submissions stood at lists still being translated (VICTORY_THIN), the rest while the title had not submitted; ...queue/behind.rsLane::step:Listsjob (lists still being translated), it callstranslating(true).translating(false).copystat.rsrange()takes the bytes copied too (fromshadow.update's return value). The line gives both:... MB/frame looked at, ... MB/frame copied.diagnosticsas before.Measured
RTX 2070 SUPER 8 GB, Ryzen 7 5800X, 32 GB, Windows 11, diag build of a local branch (
testatb9b32e4plus these commits),scripts\play.ps1defaults, Series S, DLSS.test's own code built the same way gave the same frame times with and without these commits (204 against 200 ms, same route).Checks
cargo build --profile diag -p victory --features "dlss diagnostics": ok, on the local branchcargo test -p victory-gpu --lib --locked queue::behind: 5 passedcargo clippy --workspace --all-targets --locked -- -D warnings: fails on main's existing errors only, none in the changed files:victory-loader/src/descriptor_sites.rs:494,559(transmute annotations),victory-gpu/src/list.rs:1870(totalsnever used) andwatch.rs:3626(open). See #241, #324, #362.cargo xtask policy: 265 files okdrains.pyNot checked
Lane::stepruns in the existing parallelbehindtests, so a test reading them would race. The value is checked against the neighbouring lines in game instead.Related
This change was made with AI assistance (Claude Code).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.