GPU: count is_view calls and time in live guards #219
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory!219
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-219"
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?
@TheRifai on GitHub · 2026-12-02 14:39 UTC · original
TheRifai:isview-counter→main· +16 −1 · 2 files · 1 commits · closed without mergingWhat
Answers the counter request on #208: count the
is_viewcallslive_title_blockmakes and the time in them, with a stats line showing calls/s, ms/s and µs per call. No rendering or guard behaviour changes — two atomics and one log line.Evidence
100 s warm-store house run on main
963df8e, RX 9070 XT / RADV 26.3.1, GE-Proton11-16, Series X 3840x2160, scripted camera walk, patched build:is_viewcalls/sis_view, ms/sSo the time is in the query path, not just in the wait that follows it: ~80 ms/s in
is_viewat the median against ~28 ms/s of sending waits, and ~100 µs per call — far more than oneVirtualQuery. That points at the hole walk insideis_viewor contention on the umem lock rather than the single syscall. This keeps the #141 crash fix and gives the next patch a target.cargo check -p victory-gpu --features diagnosticsandtools/build.shexit 0. Evidence:/home/shlong/Documents/VKtory-capture/isview-run/.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited (rules 29/31)unsafeor translator output changed (rules 2/9b/33/35/36/27)@TheRifai on GitHub · 2026-12-02 15:32 UTC · original
Correction to my earlier pointer: the corrected branch is
isview-counter-v2(c3b1668), not the uncorrectedliveguard-known-view-v2. This PR stays open; no force-push.Per the request on #208, the counter now also buckets each
VirtualQuerybyRegionSize(thread-local flag so onlylive_title_blockcalls count). 100 s house run on mainb447925, RX 9070 XT / GE-Proton11-16, Series X 3840x2160:is_view1,286 calls/s mean, 111.7 ms/s, ~87 µs/call. ~88% of queries land in multi-GiB regions, which fits yourget_vprot_range_sizewalk on the 24 GiB placeholder and explains the ~100 µs/call. Evidence:/home/shlong/Documents/VKtory-capture/isview-regions/.@vktory6 on GitHub · 2026-12-02 15:41 UTC · original
Thanks, this counter is what made the cause visible (~100 µs per
is_view). The fix (github.com/vktory6/VKtory@3aea0e4, see #208) takesis_viewoff the hot path, so the call it counts now only runs once per block that is neither title memory nor umem's. Closing as superseded, credited in the fix's commit message.@TheRifai on GitHub · 2026-12-02 15:47 UTC · original
Third (and final) branch pointer:
isview-counter-v3(7e6297f), rebased on main3aea0e4, which carries the title-memory record fix for #171. Earlier pushed branches could not fast-forward, so no force-push; this PR stays open.The counter now validates that fix on current main: 100 s house run
rt3, RX 9070 XT / GE-Proton11-16, 3840x2160:is_view0 calls/s (0.11 ms/s residual) against 1,286 calls/s and 111.7 ms/s before the fix, sending waits 5.5 ms/s against 48-59 ms/s,LIVE_NOT_TITLEstill 16, fps 28.04. Evidence:/home/shlong/Documents/VKtory-capture/isview-after-main-fix/(andisview-regions/for the pre-fix bucket table). The counter is diagnostic only; with the fix in place there is nothing left for it to catch, so please close this PR if you agree it has served its purpose.Pull request closed