gpu: enable renderer port 2 descriptor notices by default #201
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!201
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-201"
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 08:05 UTC · original
TheRifai:port-descriptors-default-v2→main· +7 −7 · 3 files · 1 commits · closed without mergingWhat
VICTORY_PORT_DESCRIPTORS("renderer port #2") patches the title's descriptor-record stores so heap sync learns which slots changed instead of reading whole changed heap pages. It is implemented and has a correctness fallback, but was off by default. This makes it the default;VICTORY_PORT_DESCRIPTORS=0keeps the old path available.The reference
SandBar's heap hooks report 35 ms → 1.3 ms for the same idea on Windows/D3D12; this port is our Vulkan-side equivalent. No code was copied; prior art only.
Evidence
A/B/B/A on the house save
rt3, 110 s each, GE-Proton11-16, warm store, ray tracing on, no validation:About +1.6 fps, −2.1 ms per frame, renderer −1.6 ms. Loud kinds were unchanged and no fallback/fault lines appeared in either port run. A 110 s validation run with the port on reported only the four known VUIDs (
03428,01688,01687,06409) and no new loud kind.Runs:
/home/shlong/Documents/VKtory-capture/port-ab-{A1,B1,B2,A2}/,/home/shlong/Documents/VKtory-capture/port-val/. Not performance claims beyond the A/B above; validation runs were not used for timing.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited (rule 29/31)unsafeor translator output changed (rules 2/9b/33/35/36/27) — the existing fallback remains, only the default changes@TheRifai on GitHub · 2026-12-02 12:10 UTC · original
Follow-up A/B on the cadence knob this PR exposes (
VICTORY_PORT_DESCRIPTORS_EVERY, default 8): lowering it to 2 does not help here, so I would keep 8 as the default.Setup: main
d59b4f8withVICTORY_PORT_DESCRIPTORS=1(the behaviour this PR turns on by default), RX 9070 XT / RADV 26.3.1, GE-Proton11-16, Series X, 3840x2160, house savert3, warm store, 100 s per run, W/I/K/J at 20/45/70/95 s,VKB_LAT=1. One A1 arm atEVERY=8only produced ~800 frames (the others ~2,500) and is excluded as a bad startup.slot_reads at Executeper slow frameThe cheaper cadence does not move fps or slot-read time in this scene, and it does more take work (23 vs ~22 takings/frame is noise, but the slot count is not lower). So the default of 8 looks right; no change requested. Evidence:
/home/shlong/Documents/VKtory-capture/portevery-ab-{A1,B1,B2,A2}/.@vktory6 on GitHub · 2026-12-02 15:28 UTC · original
Thanks for the A B B A (+1.6 fps). Holding this one for the maintainer. It makes patching the title's descriptor stores the default, and our rules list "a patch of title code" as suspect by definition. The output should be identical with the fallback, so this is a policy decision, not a correctness problem. Also, rule 2 wants a value that doesn't parse to stop the start:
map_or(true, |v| v != "0")turns it on for any other value. TheEVERYdefault of 8 stays, per your follow-up.@vktory6 on GitHub · 2026-12-02 16:35 UTC · original
Thanks for the measurement. It's useful, but I'm not making this the default, and I'm closing the PR. Renderer port 2 patches six of the title's own descriptor-record stores at offsets found by hand in the binary. Our rules (docs/AGENTS.md, "Suspects by definition") list both "a patch of title code" and "a table derived from the title" as things whose first question is "should this exist at all?". That rule comes from the pool-assert patch (#212), which sat unowned until today for the same reason.
What your A B B A does show is the cost port 2 works around: reading whole changed heap pages costs the renderer ~1.6 ms a frame, and heap sync 9 → 6.5 ms in slow frames. That belongs in the heap sync itself, without patching the title, and port 2 goes once that's done. Both are now in the TASKS item "Slim victory-gpu" with your numbers:
github.com/vktory6/VKtory@0dd90e2. If you want to take it on, "Descriptor heap as one array, not seven typed ones" is where it starts.Pull request closed