Repository navigation
Conversation
…ark) An ignored test that runs the submissions of a made-up world frame through Host::execute on made-up title memory (write-watched pools, physical pages shown through two views), at the per-frame volumes a title run published on issue Marvisak#400, and prints the parts next to the published numbers and the cost of each mechanism on its own. No title, no hardware GPU needed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (940d32f, Windows 11 x64, Rust 1.98.1 MSVC):
cargo test -p victory-gpu --lib frame_bench— compiles cleanly and respects#[ignore]cargo clippy -p victory-gpu --all-targets— 0 warningscargo xtask policy— ok (184 files ok)
Clean opt-in world-frame preparation benchmark harness in host/frame_bench.rs. Looks good.
AI-assisted (Gemini 4 Neon).
…ished volumes (benchmark)
catminou4
left a comment
There was a problem hiding this comment.
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
GPU tests: world frame preparing at published volume — test-only PR for GPU paths; can't run on macOS, relies on Windows CI.
…at the published volumes, head efb35b5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sak#2115 in; Marvisak#2150 left out for now Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Confirmed working on Windows 11 x64 / AMD Radeon RX 7600 (driver
Clean, deterministic synthetic baseline for hardware comparisons. AI-assisted; synthetic tests only, no game files, dumps, or captures used. |
|
Automated triage for the maintainers. Merge candidate, but only if the maintainers want to carry it. This adds an ignored benchmark, It is about 590 lines with many made-up constants, and it needs about 3.2 GB of memory when run. Whether to carry it, or keep it with #2136 as the measurement for that change, is a maintainer call. Generated by Claude Code |
The title run on
940d32fin #400 (comment, RX 6700 XT) put 774–1,198 ms of a 1.2–2.0 s world frame into preparing submissions on the CPU, and published the volumes behind it: 21,974 refreshes asking for 20.6 GB, 254,139 change checks over 92.8 GB of which 99.7 % was unchanged, 7,147 protect calls, 698,986 page faults. Nothing in the tree replays those volumes, so a change to the refresh, guard or arming code can only be measured in the title.This adds an ignored benchmark,
host::frame_bench::world_frame_preparing, that does. It needs no title and no hardware GPU: it runs on the software adapter.What it does
It makes 4,100 host copies of 1.6 GB of made-up title memory of the two kinds the runtime gives a title: write-watched pools, and physical pages shown through two views (one view per run, and again page by page through placeholders, reported with
title_memory_aliasedasxmemreports them). Then it records and runs frames of 33 submissions of 12 lists throughHost::executeitself, so the refresh batch,Shadow::update, the guards and their fault handler, arming, snapshots, the page table'sprepareand both copy-backs are the real ones. The lists record no GPU commands.Per frame it asks for what the published line asks for. The left column is this benchmark on
main, the right the title run:It prints the frame's parts next to the published numbers (with the
diagnosticsfeature, every counter of thecopies per frameline), and then what each mechanism costs on its own: a check of a copy nothing wrote, a check of the heap under declared ranges, declaring a range as written, a guard's round (the title's write, the fault, the next refresh) on each kind of memory with the page faults it causes, and a copy through the kernel against one in user mode.What the published line does not say is made up, and the file says so at each constant: how many copies there are and how large (4,100 of 365 KB on average follows from the checks;
memory.rsnames the count), which lists use title memory, how many ranges shaders declare, and whether the title writes the same pages every submission. Not modelled: title threads writing while a submission is prepared (the title's writes come between submissions, on the same thread), heap-indexed views (Step::Heap), textures.What it shows on
main(synthetic)Ryzen 7 7800X3D, WARP,
diagprofile withdiagnostics, median of 5 frames after 2 warm-up frames, three runs:copies per frameline the comment did not quote would tell: guard faults, pages opened, pages written, page faults while preparing, protecting, moves.These are wall times of a made-up pattern on an idle process. They say which change moves which part, not what frame rate the title gets.
Next to the other benchmarks
#1743 (
world_frame_copies) and #2051 (world_frame_refreshes) replay one 174 MB heap throughupdate,writingandcopy_back, to compare copy and snapshot changes. This one is about what those leave out: thousands of copies asked for many times over, the guards, the page table'sprepare, and the submission path around them. It goes throughHost::executeand reports the diagnostics counters, so its output lines up with a tester's log.Changes outside the new file
host.rs: themodline.shadow.rs:Shadow::mark_written(tests only), which sets a page's bit in the views' written-pages bitmap as a shader does.copystat.rs:take()(tests only), the counters since they were last read.Running it
About 4 s after the build; it takes 1.6 GB of memory twice (title memory and host copies). Without
diagnosticsit runs on the default adapter and prints the times without the counters.Tested
diagnosticsbuild,VICTORY_D3D12_WARP=1): three runs onmainas it is here.cargo clippy -p victory-gpu --all-targets --locked -- -D warnings, with and without--features diagnostics: clean.Not run: the title; any hardware GPU (everything above is the software adapter); the rest of the test suite on this branch (outside the new file it adds two test-only functions and a
modline). The title was not used in these tests.AI-assisted
🤖 Generated with Claude Code