bench: compare guest-memory latency across access paths #301
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/lobomfz--VIctory-xmem!301
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-301"
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?
@tommiehansen on GitHub · 2026-12-03 09:42 UTC · original
tommiehansen:perf/t00-guest-memory-benchmark→main· +141 −53 · 2 files · 2 commits · merged 2026-12-03 16:26 UTCProblem
The existing dependent node chase timed one depth on a device-local allocation. Gameplay logs show low-occupancy, long-lived waves, but do not distinguish descriptor selection from dependent memory placement costs.
Implementation
Extend the existing ignored benchmark with 4, 16 and 48 dependent steps, a direct-address root SRV control, and device-local versus CPU-visible L0 allocations. Validate every shader output against an identical reference before emitting timing samples. JSON lines record GPU timestamp duration and host elapsed time separately. The documentation explains how to correlate results with the existing gameplay capture workflows.
Benchmark matrix
This is a diagnostic tool, not a gameplay optimization. It helps evaluate the hypotheses behind #302, #305 and #303. Verify actual heap placement rather than assuming an allocation label implies physical VRAM or RAM.
Validation
Windows-target Rust checking with diagnostics and test targets passed on macOS, using a check-only mimalloc override and pure Rust BLAKE3. The GPU test and DXC runtime were unavailable here. No timings are claimed.
Please run the documented benchmark on RX 9060 XT 16 GB and RX 9070 XT under the same Wine, vkd3d-proton and RADV revisions used by the game. Compare placement in a driver trace and pair the microbenchmark with native, RT-enabled Series X captures (1080p on the 9060 XT, 1440p on the 9070 XT). This PR changes test code and documentation.