Skip to content

Benchmark: replay world-frame preparing volumes on WARP - #5

Closed
Naruto334692 wants to merge 22 commits into
mainfrom
benchmark/world-frame-preparing-after-uav-fixes
Closed

Naruto334692 wants to merge 22 commits into
mainfrom
benchmark/world-frame-preparing-after-uav-fixes

Conversation

@Naruto334692

@Naruto334692 Naruto334692 commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Purpose

This is a temporary benchmark/validation PR, based on the combined PR #1 + PR #3 integration tree. It brings in the reproducible synthetic WARP benchmark from upstream PR Marvisak#2134 (with its test-only counter and page-mark helpers) and runs it after the standard CI suite.

The benchmark replays the published CPU-side workload from issue Marvisak#400 using made-up host/title memory. It exercises the real Host::execute preparing, refresh, guards, snapshots, page-mark and copy-back paths; it does not load GTA VI files and does not measure real game FPS or discrete-GPU performance.

Upstream source benchmark: Marvisak/VIctory PR #2134. The benchmark source is test-only and retains its upstream attribution and workload caveats.

Run

Windows CI runs:

$env:VICTORY_D3D12_WARP = "1"
cargo test --profile diag -p victory-gpu --features diagnostics -- --ignored --nocapture --test-threads 1 world_frame_preparing

Scope

Windows CI result

Workflow 45602186239 passed on 460d2a96748b907b932be054551475c691d19dd7:

  • Standard Clippy: success.
  • Clippy with all features: success.
  • cargo test --workspace --locked: success.
  • Synthetic WARP benchmark: success (1 passed, 0 failed).

Measured synthetic workload

Windows runner, WARP software adapter, diag profile, diagnostics enabled; median of five measured frames after two warm-up frames. The benchmark allocated 4,100 synthetic host copies of 1.62 GB and replayed 33 submissions per frame. The values below are from the combined PR #1 + PR #3 tree:

Metric Combined-tree benchmark Published RX 6700 XT title run
CPU preparing 79.3 ms 1,198 ms
Copy-back 146.4 ms 122 ms
Refreshes 22,494 21,974
Bytes requested by refreshes 20,961.7 MB 20,600 MB
Change checks 1,325 254,139
Bytes checked 3,510.1 MB 92,800 MB
Bytes changed/copied 159.1 MB 240 MB
Protect calls 7,813 7,147
Snapshot bytes 580.2 MB 563 MB
Snapshot time 27.6 ms 31.7 ms
Marked pages compared 942 1,996
Marked bytes written back 46.6 MB 77.6 MB
Page faults 965 698,986

The synthetic run reports 7 ns per unchanged-copy check through the refresh batch (173 ns for the direct check). The GPU-writes step took 68.0 ms, title-memory work 7.2 ms, and refresh-batch work 40.2 ms.

Interpretation limits: the 1,198 ms column is from an actual RX 6700 XT game run and the 79.3 ms result is from a synthetic WARP software-adapter run, so those two absolute frame times are not a before/after performance comparison. The synthetic workload models published CPU-side volumes but not title concurrency, textures, heap-indexed views, translated shader execution, or discrete-GPU behavior. It demonstrates that the test path runs and records these metrics; it does not establish GTA VI FPS or playability.

This PR was created only to run the benchmark on the integration tree. The results are recorded here; the temporary PR is now closed. Keep PR #1 and #3 as the reviewable feature proposals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant