bench: benchmark your own settings, not only PortWatch's #361
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!361
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-361"
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?
@Bushyon on GitHub · 2026-12-03 20:07 UTC · original
Bushyon:benchmark-custom-settings→main· +171 −42 · 7 files · 3 commits · openThe benchmark always put PortWatch's settings over the user's, so there was no way to measure a preset or your own
run.conf../run.sh play VICTORY_BENCH=custom(orrt,nort). Custom keeps your preset,run.confand command line.run.conf.defaultor a preset names (andCONSOLE,KEEP_FREE), without paths, with a count of those left out.Measured on an RX 7800 XT 16 GB, Ryzen 9 7900, 31 GB RAM, Fedora 44, 5 minutes each (240 s measured):
The two columns use different settings; they show both modes working, not a comparison. The custom run also had
VICTORY_WARM=0on its command line.Tested:
victory-coretests pass on this branch. Both runs were made on a local build that also had #348; they entered the world, closed after the time, wrote their reports and restarted. PortWatch RT OFF was not run.Later changes: the settings list and the preset check were tested on their own. Benchmark mode (and the first run) now stops pressing Enter once the world is drawn (three seconds in a row of 1000 or more draws a frame, 65 s still the limit) instead of always pressing until 65 s. A 2 minute PortWatch RT ON run with the Enter change (a build of
mainwith it, this branch's scripts) got into the world and wrote its report: 23.5 fps average, 13.1 fps 1% low over the last 60 s.victory-coretests pass and this branch builds with it.AI-assisted.
@Luxuride on GitHub · 2026-12-04 12:10 UTC · original
Good idea, and the smallest self-contained change in its batch: it turns every user with a non-standard setup from "cannot contribute evidence" into "can". Three shell nits and one thing I would not ship as-is.
What I checked:
bench.rs'srunning()acceptscustom, the menu'sBENCH_MODEStable replaced thebench_without_rtbool, the menu test was extended withSome("custom:5"), anddocs/SETTINGS.md:143documents the mode. No undocumented switch.tools/bench-results.sh:38:output=${s[width]}x${s[height]}— if the screenshot has a width but no height parsed, the report gets1920xand PortWatch ingests a nonsense resolution.${s[height]:-?}like line 54 already does would be enough.run.sh:137:unset VICTORY_PRESET $(grep -ho '^VICTORY_[A-Z0-9_]*' "$root"/presets/*.conf | sort -u)relies on unquoted word splitting of a glob-derived list. Ifpresets/ever loses its.conffiles,grepsees a literal path, prints an error, and the unset silently degrades toVICTORY_PRESETonly — the run then quietly keeps the user's settings while reporting a PortWatch run. Make it$(... || true)-safe and check the list is non-empty before unsetting.The one I would change outright:
tools/bench-results.sh:52-53dumpsenv | grep '^VICTORY_'into a report meant to be pasted publicly, filtered only for menu/bench names and for values containing a slash. That is a heuristic standing in for a decision — a path without a slash, or a legitimate value with one, both get through the wrong way. An allow-list of the settings you actually want in a report is safer, and it is also the version that will not need revisiting the first time someone's report carries something they did not expect.50 commits behind, merges clean.
@Bushyon on GitHub · 2026-12-04 14:25 UTC · original
fixed the three points, and benchmark now stops pressing enter once you're in the world
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.