bench: compare guest-memory latency across access paths #301

Manually merged
github merged 2 commits from github-bot/gh-301 into main 2026-12-03 16:31:30 +00:00 AGit
Owner

@⁠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 UTC

Problem

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

Dimension Cases
Dependent chase depth 4 / 16 / 48
Addressing Directory selection / direct root SRV control
Allocation Device-local / CPU-visible L0
Recorded timing GPU timestamps and host elapsed time separately
Correctness gate Output parity before timings

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.

**@⁠tommiehansen** on GitHub · 2026-12-03 09:42 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/301) `tommiehansen:perf/t00-guest-memory-benchmark` → `main` · +141 −53 · 2 files · 2 commits · merged 2026-12-03 16:26 UTC ## Problem 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 | Dimension | Cases | |---|---| | Dependent chase depth | 4 / 16 / 48 | | Addressing | Directory selection / direct root SRV control | | Allocation | Device-local / CPU-visible L0 | | Recorded timing | GPU timestamps and host elapsed time separately | | Correctness gate | Output parity before timings | This is a diagnostic tool, not a gameplay optimization. It helps evaluate the hypotheses behind [#302](https://git.gtahub.st/github/lobomfz--VIctory-xmem/pulls/302), [#305](https://git.gtahub.st/github/lobomfz--VIctory-xmem/pulls/305) and [#303](https://git.gtahub.st/github/lobomfz--VIctory-xmem/pulls/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.
Extend the dependent node chase with a root SRV, device-local and CPU-visible L0 allocations, and three dependency depths. Emit separate GPU timestamp and elapsed host measurements and compare every output before timing each case. Document the existing gameplay capture workflows and distinguish unsupported runs from results.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 09:42:33 +00:00
Point Linux users at build.sh so the benchmark uses the same Windows target and Wine runner as the game. Keep the equivalent Windows command.
github manually merged commit 56ceb3b4d6 into main 2026-12-03 16:31:30 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.