Repository navigation
Bench: scripts/bench.ps1 on its own (from #1046), with a route from the world's first frame - #1099
ballsimulation wants to merge 2 commits into
Conversation
… tracing, DLSS and frame generation; frame times on the frame log
- scripts/bench.ps1 starts the title through `victory play ... --set ...` and
summarises the frame lines (median, 1 % low, draw bands), CPU, memory, GPU
and video-memory samples, and compares earlier runs (-Compare). Options
for ray tracing, DLSS, frame generation and the pipeline book. Run folders
sit beside cache_dir, not in it.
- A video-memory sample over 1 TB (a counter that underflowed) is left out of
the mean and the peak, and the summary says how many were.
- A comma inside a switch value ('A=1,2,3') stays in the value.
- host.rs: the Meter writes a frame-times line every 5 s (diagnostics builds),
the lengths taken from the frame meter's intervals.
- capture.rs: a file named `now` in the capture folder saves the next frame,
so a tool can look at the screen of a title running in the background.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The route (a file of `<seconds>:<key>` / `<from>-<to>:<key>` lines, or entries separated by commas) goes to VICTORY_KEYS with VICTORY_KEYS_FROM=world, so every run walks the same way from the same moment. Its name and hash are in summary.json's config. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Ran What worked:
Three things I'd change:
Very handy script otherwise. 👍 Edit: the stalls I mention here turned out to come from a local, unpublished commit in my own build (a dispatch that waits for its compute pipeline with no time limit). With it off, 0 stalls in 5 starts. They are not the upstream #846 stall; see my correction on #846. |
Summary
scripts/bench.ps1by @ldanyyl, taken out of #1046 so it can land without that PR's 25 ray-tracing files. It runs the game unattended and writes a summary, so runs on different machines or with different switches can be compared:-Compareprints earlier runs side by side.Added here:
-Route, a walk in the world, either as a file of<seconds>:<key>/<from>-<to>:<key>lines or inline (-Route '5-10:W,10-12:L,12-18:W'). It is passed asVICTORY_KEYSwithVICTORY_KEYS_FROM=world(#1098), so every run walks the same way from the same moment. The route's name and hash are in summary.json.Why
A/B reports on open PRs often can't be compared. One reason is the two runs loading different spots: #175, and the A/B on main in #501. Another is that each tester has their own route. This script fixes the first problem, and
-Routefixes the second.Changes
scripts/bench.ps1: new. ldanyyl's commit 7756cd9, unchanged, applied onto main63b902fe. Its author stays ldanyyl.crates/victory-gpu/src/capture.rs(from the same commit): a file namednowin the capture folder saves the next frame, so the script can see the screen.crates/victory-gpu/src/host.rs(from the same commit): in diagnostics builds, a frame-times line every 5 s.-Route.Checked
One unattended run on an RTX 4070 + Ryzen 9 7950X, main
63b902fewith both PRs, diagnostics build:-Dlss performance -Warmup 15 -Seconds 45 -Route '3-9:W,9-11:L,11-17:W'.config.routein summary.json readsinline (f10f4539e65e0371).Two more runs from the free-roam save shared in #332, used as
-Seed, with-Route '12-22:W,22-24:L,24-34:W,34-36:J,36-46:W':The world came 6 s apart, yet both walks ended at the same spot with the same camera angle: the green wall under the awning, at 49 s and 51 s after the world's first frame. Traffic and pedestrians still differ between runs (a parked car in one, a passing van in the other). That is part of why the two medians differ by 3 %, and why the next step is an interleaved A/B in one run (
VICTORY_AB).Not checked
VICTORY_KEYS_FROMis ignored and the route counts from when input starts.If this lands, #1046 can drop its copy of the script.
🤖 Generated with Claude Code