scripts/bench.ps1: unattended runs into the world with a frame-time summary #617
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/617"
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 fxceless/victory-fork. Originally posted by abilliontokens on 2026-11-25T03:24:13Z.
A script for unattended, comparable runs: start the title, get through the menus into the world, measure a window of world frames, and write a summary. Same steps on every machine and with any switches, so reports can be put side by side.
What it does
scripts\bench.ps1(PowerShell, Windows; needs the diagnostics build, or pass-Build):victory run <game exe> --executeand keeps everything in one run folder (default<cache_dir>\bench\<time>-<label>):victory.log, a frame every 20 s inframes\, the run's copy of the data folder,summary.md,summary.json.data_dir, or-Seed), so autosaves never leak between runs.-FirstBootstarts from no saves at all; that run'sdata\is then a seed for the rest.-Warmups after the first frame with ≥ 500 draws, for-Secondss): medians and means of fps, ms/frame, preparing, GPU, copying back, draws, dropped and being made. Also counted: untranslated shaders, refused pipelines,crashes.loglines, peak private memory. Device removals and unhandled exceptions are listed as notes.-Compare <run>,<run>prints one markdown table of medians.-From <run>summarises an earlier run again over another window.Two diagnostics hooks it needs (both
diagnostics-only)VICTORY_KEYS_FILE=<file>: each line appended to the file (Enter, orEnter 0.5to hold it) is pressed once, in order, focus or not. Same key names asVICTORY_KEYS. Presses are 0.6 s apart. The title's menus dropped aDownthenEntersent 0.15 s apart: the focus moved and theEnterwas lost.VICTORY_CAPTURE=<dir>: a file namednowin the folder saves the next presented frame and is removed. #267 proposes the same file with three frames; this one takes a single frame and keeps it wanted for both checks the present path makes, so one ask is one PNG.Checked
RTX 5060 Ti 16 GB (driver 621.24), Ryzen 5 7600X, Windows 11,
c96b4f2:-FirstBoot, empty data folder): world reached in 98 s with no input by hand. Screens recognised in order:notices:copyright → photo → next,terms:privacy:0:0 → privacy:1:0 → terms:1:0 → terms:1:1 → confirm:1:1.other.cargo test -p victory-hle --features diagnostics: 96 passed.cargo clippy -p victory-hle -p victory-gpu --all-targets --all-features -- -D warnings: clean.cargo xtask policy: ok.Not checked: other titles, Series S, or a title language other than English. The layout checks are relative to the frame size, but a translated legal screen may lay out differently; it then falls back to A, as for any other screen. No game files, frames or logs are in the change.
AI-assisted (Claude Code). Runs and checks done on the machine above.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.