Tools: victory-probe holds the world clock for comparable runs, and bench.ps1 runs them unattended #2340
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2340
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2340"
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?
@RomanFama592 on GitHub · 2026-11-29 12:08 UTC · original
RomanFama592:feature/victory-probe→main· +1557 −4 · 9 files · 2 commits · closed without mergingThe time of day decides how much an 8 GB card holds and draws, so A/B runs taken at different in-game hours are not comparable. On an RTX 4060 Ti 8 GB the same spot ran at about 16 fps at night and 6 fps at noon (GPU 55 → 156 ms a frame), and an overnight run of seven builds came out up to 3x slower in its second round for every build, the base included. This adds a way to hold the world clock, on anyone's copy of the title and without storing anything of it, and the unattended run script that uses it. Details in
docs/victory-probe.md.What it changes
tools/victory-probe(a new workspace binary, Windows only; nothing else depends on it). It attaches to the runningvictory*.exe, finds the title's image (the loader'svictory-image-*module) and reads or writes words of the title's memory:find clock: watches the image's writable memory for words that only ever step up one minute at a time, ranks those with an hour (and a date) beside them first, then tells the source apart from its copies: each likely copy is moved 30 minutes, and the one that keeps the value and that the others follow is the one the title reads (the copies are rewritten from it every frame, so holding a copy holds nothing). It prints the twosetlines.time HH:MM,hold HH:MM(set and hold until the game ends),hold-args HH:MM(the--setlines for the layer's own hold),menu(a console menu),serve <file>(commands appended to a file, for scripts).find pos <keys file>(the player's position, read only, found by walking the player throughVICTORY_KEYS_FILE),pos,spot <name>; a genericscan start|next|showandread/write.%LOCALAPPDATA%\victory\probe\probe.cfg.VICTORY_IMAGE_HOLD_AFTER_S=<seconds>(victory-hleimage_watch.rs): the existingVICTORY_IMAGE_HOLDcan start that long after the title's start, so a run can hold the clock with no other program. Unset: as before, at once.tools/bench.ps1: unattended runs, one variant after another (name[@exe][=VAR=VALUE;…],-Repeats), each started with a keys file, Continue pressed until the world draws,-Clock HH:MMheld once the world is loaded, a fixed route (standing with the camera turning, then a short walk), a clean close with the window's close command, and medians of fps, CPU preparing time, GPU time, VRAM past the budget, dropped draws and refused first uploads appended tobench\results.csv, plus two screenshots per run.docs/victory-probe.md, linked from the README's docs list.Not included: writing the position does not move the player (the copies found are put back within about two seconds; the physics keeps its own), so there is no teleport.
How it was tested
find clock 60in the world: the minute and hour found, the source told apart from three copies (the copies were put back, the source kept the value and the three followed).hold 12:00kept the clock at 12:00 for the whole check while the copies followed; the light changed from night to noon.tools/bench.ps1 -Clock 12:00: 14 runs of seven variants unattended, each closed cleanly. While writing this up I found that the first version held a copy rather than the source, so those runs were not truly held; the probe now checks for that.568c5e5: builds of currentmainstop at start on this PC (0x80000003in System Init, like #2081/#2055). For the same reasonVICTORY_IMAGE_HOLD_AFTER_Swas checked by its unit test (the_hold_waits_as_long_as_asked) and not in a run.cargo test -p victory-probeandcargo test -p victory-hle --lib image_watchpass;cargo clippy -p victory-probe --all-targetshas no findings (the workspace has older warnings in other crates).cargo xtask policyreports only an existing file (crates/victory-loader/src/heap_sites/frame_users.rs).Checked for overlap
VICTORY_IMAGE_HOLDalready exists inimage_watch.rs; this adds the delay and a way to find the words. Related: #1944 (the 8 GB work these runs are for), #1962 (an 8 GB test matrix that needs comparable runs).🤖 Generated with Claude Code
https://claude.ai/code/session_01WiREjB6TQEQ2QzFVNzZKGS
@Yuanzer on GitHub · 2026-11-29 17:04 UTC · original
Independent validation on the current main
829188e9and title 1.0.2.1 (AI-assisted local test), which the PR notes could not be run on its author's current-main build:victory-probe find clock 60, while the title stood in the opening world, found the source asminute img+0xab5cdd4andhour img+0xab5cdd0.victory-probe hold 12:00then held the clock across four complete game runs (two baseline and two #1944 candidate runs). The hold process remained alive through each run, and 12:00 produced stable, much narrower frame-time distributions than the unclocked runs.One discrepancy: the docs' introduction says what
find clockfinds is kept inprobe.cfg, but the find command did not create that file here.hold-args 12:00failed until I manually addedhourandminutefrom its printedsetlines. If persistence is intended,find_clockcannot currently do it because it receives onlyProc, notCfg; either persist on discovery or adjust the wording to say the printedsetcommands must be run.Aside from that, the tool did exactly what the 8 GB A/B needed.
Observed locally on behalf of the reporter; analysis is AI-assisted.
@Yuanzer on GitHub · 2026-11-29 17:58 UTC · original
Validation of
f0f9397con Windows 11, title 1.0.2.1, i7-14700KF / RTX 5060 Ti 8 GB:--- output ---
--set VICTORY_IMAGE_HOLD=hour=ab5cdd0:4=12,minute=ab5cdd4:4=0 --set VICTORY_IMAGE_HOLD_AFTER_S=120
So the defect I reported on the previous head is fixed, including the no-existing-config case.
One stale help line remains in HELP:
--- old line ---
victory-probe find clock [secs] the minute and hour (then
set minute,set hour)It now saves them automatically, so that parenthetical should be removed or changed to "saved in probe.cfg"; otherwise it still documents the old workflow. victory-probe help reports no checks for this branch, so I could not use CI to cover that wording.
Runs and readings are from the reporter's machine; analysis and wording are AI-assisted.
@RomanFama592 on GitHub · 2026-11-29 19:09 UTC · original
Closing this as superseded by #2825 (victory-probe-mod), to keep the queue clean. That PR does what this tool was for from inside the title's process, and adds teleports, a fixed camera per place and unattended test plans with reports:
freeze on(menu, command or plan step) holds the world clock from the mod itself, so the layer switch added here (VICTORY_IMAGE_HOLD/VICTORY_IMAGE_HOLD_AFTER_Sinimage_watch.rs) is not carried over.victory-probe find clock(the stepping minute, the hour before it, the 30-minute move that tells the title's copy apart), saved into the mod's per-buildmod.cfg. It is being folded into #2825 asfind clock [seconds].run-bench.ps1(variants as exes and/or switches, repeats in A B A B order, the warm-up restart, a side-by-side summary) takes over frombench.ps1. It is also being folded into #2825.@Yuanzer, thank you for both validations. The words you found on the RTX 5060 Ti (
hour img+0xab5cdd0,minute img+0xab5cdd4) are the ones built into #2825. The stale help line you pointed out goes away with this PR; #2825's guide describesfind clockas saving what it finds.@RomanFama592 on GitHub · 2026-11-29 23:43 UTC · original
A correction to the note above:
find clockis not in #2825 yet. In this title the clock words are written back from another value, so its test (move the minute alone and see whether it stays) picks the wrong word. Until that is solved, #2825'swatchcommand finds the offsets; the rest of this PR (holding the clock, the unattended bench) is there.Pull request closed