bench.ps1: the frame lines' newer texts, and a shared read of the log the game writes #3925
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3925"
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 Cooperos on 2026-11-30T11:45:12Z.
What it changes
The bench could not read a single 5-second frame line, so every run ended
in "the world did not start within 900 s" with an empty summary - the
world's gate reads its draws from those lines.
Three things drifted from the texts the script matches:
host pipeline (M being made)", main's line says "dropped N draws or
dispatches (M being made) and K indirect". The expression now takes
either;
victory_gpu::frame_timesand nowgives the window's median, p95, p99 and longest in ms, where the older
victory_gpu::framelogline carried a per-frame list in tenths of amillisecond. The p99/p99.9 now come from the line's own percentiles -
the worst 5 s line of the window, close to the window's true tail for
being ~150 frames a line;
ReadLineswhilethe game was writing it, which threw "the file is being used by another
process" when the read raced the writer. It reads with
FileShareReadWrite, Delete now.
How it was tested
41adb551) real log lines: theframe line and the frame-times line both match, groups right.
900 s", empty table) summarises with this change: world after 39 s,
35 frame lines, median 23.1 fps (2,223 draws), p99 101.8 ms.
610.88, Series S, main
41adb551): every run started, measured andsummarised.
Checked for overlap
Searched the open pull requests for bench.ps1 changes: none found
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Pierrespeick on 2026-11-30T15:04:54Z.
I checked the frame-line regex at
960eca32against a previous RTX 4060 Series S session. It matched all 28 FPS summary lines, including all 18 with at least 4,000 draws per frame.I also ran the PR's unmodified
bench.ps1 -Fromon Windows PowerShell with 32 synthetic timing windows of 250 frames each. Across the 8,000 frames, 7,996 took 20 ms, three took 80 ms, and one took 650 ms. All four slow frames were in the same window.The longest frame is worth reporting in its own right. Lines 409 and 411 take the largest window p99 and the largest window maximum, respectively. Feeding those into the existing low-FPS fields also makes
-Comparereport 12.5 and 1.5 FPS for this fixture, where both reciprocals of the pooled percentiles are 50 FPS.Could the summary expose
worst_window_p99_msandlongest_frame_mswhen only window summaries are available, and leave the pooled percentiles and derived lows null? The exact pooled percentiles can still be reported when individual frame intervals are available. The input already includes the frame count for each window, which could also give the summaries their own coverage count.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Cooperos on 2026-11-30T15:23:52Z.
@Pierrespeick, thanks!
Agreed on all counts - the fixture is exactly the case the
stand-in got wrong. Pushed
b0d1deed: when only the window summaries arein the log, the pooled p99/p99.9 and the lows derived from them are left
empty, and the summary reports the windows' own worsts as
worst_window_p99_msandlongest_frame_msinstead.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Zeyphers on 2026-11-30T20:20:06Z.
Tested on Windows 11, RTX 2080 Super 8 GB, Ryzen 7 5800X, main
84bd61e2with this PR applied. Without it the bench never detected the world and kept sending Enter in-game (character jumping in place). With it the world gate fired after 54–56 s in 10 runs and every run summarised normally (Series S, DLSS Quality). The new patterns matched 123 frame lines and 582 frame-times lines in a main log. Works as described, thanks.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ByQuartz on 2026-12-01T00:48:25Z.
Tested on Windows 11, RTX 2080 8 GB (driver 621.40), Ryzen 5 3600X, 32 GB RAM, main
7d93ee07with this PR'sscripts/bench.ps1(b0d1deed), Series S (from the F1 file), DLSS performance, standing,-Warmup 60 -Seconds 120. The world gate fired after 88 s, the window had 23 frame lines (median 15.7 fps, 6,284 draws, preparing 50.4 ms), and the run summarised and closed cleanly.Two things I noticed in the summary:
frame_timesline comes once a second on this build (228 lines in the run's log), not every 5 s as the script's comments say. At ~15 fps a window has about 15 frames, so each window's p99 is its longest frame:worst_window_p99_msandlongest_frame_mswere both 136.4 ms here. The line also carriesN over 50 ms, N over 100 ms; summing those over the window would give exact counts for the whole window.summary.jsonhasdlss_upscalings_per_frame: 1, butsummary.mdhas no DLSS line. That line is printed only insideif ($p99), and$p99is always empty with the new frame-times line.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:47:48Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed