menu: benchmark mode for PortWatch reports; the menu edits run.conf #209

Closed
github-bot wants to merge 7 commits from github-bot/gh-209 into main AGit
Owner

@⁠Bushyon on GitHub · 2026-12-02 16:32 UTC · original
Bushyon:benchmark-mode → main · +1018 −267 · 13 files · 7 commits · closed without merging

Merged with main at f3a1172. #185 was superseded by #237, so its two commits still show in the history here.

Benchmark mode

For PortWatch Lab reports.

  • Two new menu rows, apart from the settings: Benchmark mode (ray tracing on or off) and Start benchmark (Left/Right: 5, 10, 20, 30 min or 1 h; Enter starts). VICTORY_BENCH=rt|nort with VICTORY_BENCH_MINUTES does the same from the command line.
  • The run uses PortWatch's settings over the user's, for that run only: Series X, FSR 4 Quality to 3840x2160, no frame generation, VICTORY_SKIP_BINK=1, VICTORY_PANEL=full. The menu is off during it.
  • The game presses Enter (and A on the first pad) once a second in its first minute, to pass the start screens.
  • When the time is up it saves the frame about to be presented, panel included, as a PNG, and closes. run.sh writes bench_results.txt in local/benchmark/<date>-rt|nort/: the form's answers that can be known, and "you:" lines for the others.
  • Then the game starts again with the user's settings. After a crash too; not if it was closed by hand.
  • Figures: average, slowest and quickest whole second, 1% low, peak video memory and working set. The first minute is left out of runs of 2 minutes or more. No frame-time log is made.
  • Sending the report to PortWatch is manual: the user copies the answers into the form and posts the screenshot.
  • No gamescope: the game draws its own 3840x2160 output on a smaller screen. Whether PortWatch takes that as driver supersampling is theirs to say.

Menu changes

  • The menu shows and edits run.conf instead of local/menu.conf (changes #118): a commented or missing line is "not set", and only the lines of changed settings are rewritten. An existing local/menu.conf is moved into run.conf once, with a copy of the old run.conf in local/.
  • A restart starts from the environment run.sh was given, so nothing of the previous session carries over.
  • With #237's main: choosing a preset sets VICTORY_PRESET in run.conf and comments out the rows presets name, which then show the preset's values (nothing of the preset is copied into the file). A benchmark run drops any preset and its settings.
  • Long descriptions take two lines.
  • Fixed: every action row after the first read "Quit game", and Left, Right or Del on an action row indexed past the settings.

Also here

  • run.sh holds a systemd-inhibit --what=sleep:idle lock while the game runs, so the PC does not suspend or count as idle (a gamepad alone does not count as use). It needs no sudo here; without the lock the game starts anyway. Some desktops may still blank the screen despite it.
  • New update.sh: fetches upstream main, merges it into the current branch and builds. It stops on uncommitted changes, undoes a conflicting merge and never pushes. UPSTREAM and BRANCH change the source (origin, main).

Note for the maintainer: update.sh could instead be a run.sh update mode. I think it is better as a separate script, but the decision is yours.

Tested

Fedora, RX 7800 XT (RADV, the project's patched Mesa 26.3.1), Proton Experimental, 2560x1440 screen.

After the merge with f3a1172:

  • The Windows build and the victory-core tests pass.
  • In the game: opening the menu, changing settings and choosing a preset, which is written to run.conf as above.
  • With a stand-in for the game's launch: a preset applies to a normal start and is dropped from a benchmark.

Before that merge:

  • In the game: benchmark runs of 1 to 3 minutes saved a 3840x2160 screenshot and the results file and started the game again with the user's settings. A 2 minute ray tracing run reached the world with only the built-in Enter.
  • Runs of more than 10 minutes.
  • Skipping the intro movies and the built-in Enter presses.
  • Editing run.conf from the menu.
  • The move of local/menu.conf into run.conf.
  • The sleep lock with a stand-in command: it is listed while held and the exit code passes through.
  • update.sh when already up to date (it builds).

Not tested

A benchmark run in the game on the merged build. Also: the fix that leaves the first minute out of a 2 minute run (unit test only), the restart after a crash (there was no crash to test it with today), run.sh with the sleep lock in the game, update.sh merging new commits or meeting a conflict, and other hardware.

AI-assisted.

**@⁠Bushyon** on GitHub · 2026-12-02 16:32 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/209) `Bushyon:benchmark-mode` → `main` · +1018 −267 · 13 files · 7 commits · closed without merging Merged with `main` at `f3a1172`. #185 was superseded by #237, so its two commits still show in the history here. ## Benchmark mode For [PortWatch Lab](https://portwatch-vi.xyz/lab/#report) reports. - Two new menu rows, apart from the settings: **Benchmark mode** (ray tracing on or off) and **Start benchmark** (Left/Right: 5, 10, 20, 30 min or 1 h; Enter starts). `VICTORY_BENCH=rt|nort` with `VICTORY_BENCH_MINUTES` does the same from the command line. - The run uses PortWatch's settings over the user's, for that run only: Series X, FSR 4 Quality to 3840x2160, no frame generation, `VICTORY_SKIP_BINK=1`, `VICTORY_PANEL=full`. The menu is off during it. - The game presses Enter (and A on the first pad) once a second in its first minute, to pass the start screens. - When the time is up it saves the frame about to be presented, panel included, as a PNG, and closes. `run.sh` writes `bench_results.txt` in `local/benchmark/<date>-rt|nort/`: the form's answers that can be known, and "you:" lines for the others. - Then the game starts again with the user's settings. After a crash too; not if it was closed by hand. - Figures: average, slowest and quickest whole second, 1% low, peak video memory and working set. The first minute is left out of runs of 2 minutes or more. No frame-time log is made. - Sending the report to PortWatch is manual: the user copies the answers into the form and posts the screenshot. - No gamescope: the game draws its own 3840x2160 output on a smaller screen. Whether PortWatch takes that as driver supersampling is theirs to say. ## Menu changes - **The menu shows and edits `run.conf`** instead of `local/menu.conf` (changes #118): a commented or missing line is "not set", and only the lines of changed settings are rewritten. An existing `local/menu.conf` is moved into `run.conf` once, with a copy of the old `run.conf` in `local/`. - A restart starts from the environment `run.sh` was given, so nothing of the previous session carries over. - With #237's `main`: choosing a preset sets `VICTORY_PRESET` in `run.conf` and comments out the rows presets name, which then show the preset's values (nothing of the preset is copied into the file). A benchmark run drops any preset and its settings. - Long descriptions take two lines. - Fixed: every action row after the first read "Quit game", and Left, Right or Del on an action row indexed past the settings. ## Also here - `run.sh` holds a `systemd-inhibit --what=sleep:idle` lock while the game runs, so the PC does not suspend or count as idle (a gamepad alone does not count as use). It needs no sudo here; without the lock the game starts anyway. Some desktops may still blank the screen despite it. - New `update.sh`: fetches upstream `main`, merges it into the current branch and builds. It stops on uncommitted changes, undoes a conflicting merge and never pushes. `UPSTREAM` and `BRANCH` change the source (`origin`, `main`). **Note for the maintainer:** `update.sh` could instead be a `run.sh update` mode. I think it is better as a separate script, but the decision is yours. ## Tested Fedora, RX 7800 XT (RADV, the project's patched Mesa 26.3.1), Proton Experimental, 2560x1440 screen. After the merge with `f3a1172`: - The Windows build and the `victory-core` tests pass. - In the game: opening the menu, changing settings and choosing a preset, which is written to `run.conf` as above. - With a stand-in for the game's launch: a preset applies to a normal start and is dropped from a benchmark. Before that merge: - In the game: benchmark runs of 1 to 3 minutes saved a 3840x2160 screenshot and the results file and started the game again with the user's settings. A 2 minute ray tracing run reached the world with only the built-in Enter. - Runs of more than 10 minutes. - Skipping the intro movies and the built-in Enter presses. - Editing `run.conf` from the menu. - The move of `local/menu.conf` into `run.conf`. - The sleep lock with a stand-in command: it is listed while held and the exit code passes through. - `update.sh` when already up to date (it builds). ## Not tested A benchmark run in the game on the merged build. Also: the fix that leaves the first minute out of a 2 minute run (unit test only), the restart after a crash (there was no crash to test it with today), `run.sh` with the sleep lock in the game, `update.sh` merging new commits or meeting a conflict, and other hardware. AI-assisted.
VICTORY_MENU=0 turns the menu off; it is not a menu row. The restart row
reads "Save settings and restart game". run.conf.default lists
VICTORY_PILLARBOX, VICTORY_LOD_SCALE, VICTORY_SMALL_CULL,
VICTORY_VEHICLE_LOD_BIAS and VICTORY_QUAD_GUARD.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The menu's benchmark rows (ray tracing on or off; 5 min to 1 h) restart
the game with PortWatch's settings over the user's: FSR 4 Quality to
3840x2160, no frame generation, movies skipped, the full panel. The game
presses Enter in its first minute, closes itself when the time is up,
saves the last frame as a PNG and the figures, and run.sh writes
bench_results.txt in local/benchmark/ and starts the game again.

The menu now shows and edits run.conf instead of local/menu.conf, which
is moved into run.conf once. A restart starts from the environment
run.sh was given. Long descriptions take two lines; Left, Right or Del on
an action row no longer index past the settings, and each action row has
its own label.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 17:04:32 +00:00
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The menu keeps editing run.conf: choosing a preset sets VICTORY_PRESET and
unsets the rows presets name, which then show the preset's values. A
benchmark drops any preset and its settings. The sleep lock stays, and the
network namespace is left out under Proton as upstream does.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Author
Owner

@⁠Bushyon on GitHub · 2026-12-03 00:08 UTC · original

@⁠goldfishdev, fixed the conflicts and retested it, it should clean merge now

**@⁠Bushyon** on GitHub · 2026-12-03 00:08 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/209#issuecomment-7362841108) @⁠goldfishdev, fixed the conflicts and retested it, it should clean merge now
github-bot closed this pull request 2026-12-03 03:29:22 +00:00
Author
Owner

@⁠goldfishdev on GitHub · 2026-12-03 03:23 UTC · original

Most of this is merged now: benchmark core (#285), menu editing run.conf (#286), sleep lock and update.sh. The remaining menu-side bits — benchmark rows, F10 save/restart and two-line descriptions — can be a small follow-up if wanted. Closing this stale branch.

**@⁠goldfishdev** on GitHub · 2026-12-03 03:23 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/209#issuecomment-7366521918) Most of this is merged now: benchmark core (#285), menu editing run.conf (#286), sleep lock and update.sh. The remaining menu-side bits — benchmark rows, F10 save/restart and two-line descriptions — can be a small follow-up if wanted. Closing this stale branch.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.