Diagnostics: renderer port 2 trace watches a missed record's writers (VICTORY_PORT_DESCRIPTORS_TRACE=1) #385
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/385"
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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by Sr-0w on 2026-11-26T21:55:56Z.
Stacked on #359: it uses #359's
place(), which names an address by module and offset. Until #359 is merged, this branch carries its commit8436b3f. This PR's own change is the last commit,5c1c9be.Port 2's fallback (
VICTORY_PORT_DESCRIPTORS=1) names the writer of a view record no mark told of by the last fault on the record's 64 KiB block. That is a hint only. The title's frame allocator puts descriptor records, constants, list nodes and vertex data in the same blocks, so any write to the block counts. For example,title+0x3368420fills 24-byte vertices from the same allocator, and its stores show up as "writers" of descriptor slots. Finding the code that writes a missed record needs a watch on the record itself.Change (diagnostics builds only,
VICTORY_PORT_DESCRIPTORS_TRACE=1, off by default)place()).CONFIRMED: a write the marks miss. If that does not happen within 20 s, the writes are logged as candidates.What it showed
RX 7800 XT, Series X, ray tracing on, renderer ports 1, 2, 5, 6, 7 on, #359 + #273, a retail game's boat scene, 300 s runs.
VCRUNTIME140!memcpycalled through port 2's own wrapper. No other title code wrote them.0 records they marked), so the misses had to come from those copies. That led to #384: a copy that rewrites a record's later words marks nothing. With #384, misses fall from 101 to 6 a frame.Checks
cargo clippy -p victory-gpu --features diagnostics --all-targets --locked -- -D warnings: nothing in the changed code.cargo test -p victory-gpu --locked --lib port_descriptors: passed.🤖 Generated with Claude Code
Pull request closed