Bench: scripts/bench.ps1 on its own (from #1046), with a route from the world's first frame #1099
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1099"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ballsimulation on 2026-11-28T13:15:15Z.
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 commit7756cd98, 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
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Exopus-0x65f7ad0 on 2026-11-28T14:00:47Z.
Ran
bench.ps1unattended on a second machine: RTX 5060 Ti 8 GB, 16 GB RAM, Windows 11 26300.63b902f+ #1098 + this PR, diag build. Command:.\scripts\bench.ps1 -Label pr1099-route -Dlss quality -Warmup 15 -Seconds 60 -Route '3-9:W,9-11:L,11-17:W,17-19:S,19-25:W' -AllowMenuFile, twice in a row.What worked:
scripted keys count from the world's first frame (VICTORY_KEYS_FROM=world)is in the log, and the route hash is in the summary.Three things I'd change:
GPU line picks up virtual adapters. The summary says
GPU Parsec Virtual Display Adapter; NVIDIA GeForce RTX 5060 Ti, driver 0.45.0.0; 32.0.16.2114: Parsec, a remote-desktop tool, adds a display adapter, andWin32_VideoControllerlists it first. The run's own log already names the card it used, so it can be the filter:"World" can fire while the world is still streaming on slower machines. On the first run, the 500-draw line came while pipelines were still being made: the window shows
being made104 anddropped813, with a 2.6 fps median. So the 15 s warm-up landed inside the load, and the summary measured the loading screen. It would help to warn, or extend the warm-up, while the frame lines in the window still showbeing made > 0or a largedropped.A stall shows up only as "incomplete run". The second run hit the #846 stall during world load: the last frame line was at +15 s, and nothing more came for the remaining 60 s (card 5.9 % busy, 9 W). The summary averaged that single line (8.9 fps) and noted
incomplete run: 1 frame lines … about 10.9 expected. Saying it outright — "no frame line for N s while the process was alive: stalled (see #846)" — and leaving such a run out of-Comparewould stop it from passing for a slow result. My build has the title's watchdog fault patched out, so upstream this run would have ended as the+0x23cf683crash instead.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.