Frame breakdown on a 16-core CPU: the submitting thread paces the frame (43 of 46.5 ms), and three things that did not help #699
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 JohnTitor2003 on 2026-11-28T03:46:19Z.
A data point for the frame-rate work, from a PC where the card and most of the processor sit idle. One diag run for the breakdown, then short A/B runs. Happy to run specific switches or
VICTORY_ABhere if that is useful.Setup: v2026.11.27.8 built from source at
64d4931, unmodified. RTX 5080 16 GB (driver 617.42), Ryzen 9 7950X (16 cores, 32 threads), 32 GB DDR5-6000, Windows 11. Series S, 2560x1440, DLSS Performance (VICTORY_DLSS_PRESET=m), water light off, no frame cap,scripts\play-nvidia.ps1defaults otherwise. Open-world free roam on foot and by car.Where a frame goes (diag profile, one settled frame line at about 7,900 draws, 21.5 fps, 46.5 ms):
VICTORY_JOIN_PARTS=8).So on this PC the frame is the submitting thread's serial work, and that work is many small steps over little data (about 12 MB of pages really written a frame).
Release build, same settings, 32 minutes, median fps by draws a frame (the baseline for the comparisons below): 4-5k 27.0, 5-6k 25.0, 6-7k 23.0, 7-8k 21.4, 8-9k 20.4, 9-10k 19.4, 10-11k 17.8.
What did not help
VICTORY_WIDE_THREADS=16(the default clamps to 8 on 32 logical processors). Refreshes 14.9 -> 14.2 ms, submitting thread 39.2 -> 40.0 ms; fps at equal draws +0.3, +0.5, +0.6, -0.8 (41 frame lines against 379). The refreshes do not seem to be waiting for helpers.VICTORY_COPY_MODEfor timing, diag profile.none: black menus, then the device was removed at the first world frame (0x887A0004).plain: access violation while loading into the world (read of an address reserved, never committed). So neither mode gets into the world on .8.-Fast, release, same settings, second start.VICTORY_SEND_THREAD=1ran without a device loss on this card and took "sending the lists" from 1.4 to 0.1 ms, and "under flights' writes" came down, but the submitting thread still totalled 38.2 ms (refreshes 11.6, planning card steps 6.2, copies in the card's memory 6.8) and "copying back" rose from 4.5 to 6-7.6 ms. Fps at equal draws: 4-5k 24.2, 5-6k 24.2, 6-7k 21.0, 7-8k 19.4, so 0.8 to 2.8 lower than the baseline. "A texture picked by index changed after its upload" warnings came about 25 a minute against 5.6. Caveat: 40 frame lines, at night, six minutes; the baseline is a longer daytime run.Caveats: one run each; free roam, so comparisons are at equal draw counts and not on a fixed route; the breakdown is one frame line from a diag build (which ran at the release build's frame rate here).
Tested and written with an AI assistant (Claude Code); the runs were on my machine. No game files attached.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-28T03:46:28Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-28T06:15:37Z.
The same picture on a different machine, and a closer look at the refreshes inside "lists' steps".
Setup: main at
63b902f, diagnostics build, plus local timers (not sent as a PR). RTX 3090 24 GB (driver 610.88), i9-14900K (24 cores, 32 threads), 32 GB, Windows 11. Series S, DLSS Performance, frame generation off. A saved game in an interior, standing still, about 5,900 draws a frame.Submitting thread, per frame (median of 40 settled lines):
A 32-thread Intel part gives the same 42-43 ms, so this is the serial work itself, not the processor.
Inside the refreshes (per frame; "summed" is over the helper threads):
nothing_newtakes about 5-8 ms (about 1 µs each) and the updates 33-36 ms for about 1,150 copied pieces.watch::writestakes about 28 ms summed andcopy_staleabout 7 ms (about 40 MB). So it is not the bytes.watch::writesis: answered by the ahead asking about 800 (0.6 ms), read-only known about 427 (0.1 ms), kernel about 42 (0.2 ms), guards about 146 (26-27 ms).VirtualProtectread-only: 165 calls, 1.6 ms.cover: 315 calls, 2.2 ms.guard(): 390 waits, 17.9 ms summed, against 1.2 ms of waits by the fault handler and others.So the kernel calls are cheap. The refreshes' wall time is mostly the guards' work done one piece at a time under the guards' lock, with the helper threads queued behind each other.
What did not help (each a
VICTORY_ABrun, 10 s phases in the same scene, 10-13 phases a side):VICTORY_GUARD_HOT: median 40.2 ms on, 38.7 off. Slightly worse.If this is right, what would help is less work under that lock: per-region locks, or a cheaper way to tell a block written again (about 430 a frame are protected, faulted and opened every frame). Happy to run a branch or switches here; I can drive the game here with
VICTORY_KEYS_FILE, so A/B runs are easy to repeat.Measured with an AI assistant (Claude Code); every number above is from this PC's logs.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Jesper-Andersson on 2026-11-29T15:20:23Z.
The same split on an 8 GB Turing card with an 8-core Zen 3, and two notes on how to read the frame line's "copies" and "copying back" fields. This adds data; it is not a fix.
Setup: RTX 2070 SUPER 8 GB, driver 621.40, Resizable BAR off, GPU clocks locked at 1890 MHz, Ryzen 7 5800X (8C/16T), 32 GB, Windows 11. Series S profile, DLSS Performance, frame generation off, warm shader cache, open world. Build: a diagnostics build of our branch on upstream
568c5e5d, no optional ports enabled.What you see
preparing per frame, the submitting threadis 50.3 ms per frame (50.3-50.9 over three runs), in about 17.3 submissions per frame.VICTORY_GPU_TIMESon).Where the 50.3 ms go (median per frame over every periodic diag line of three ~10-minute free-roam runs; the runs agree within 1 ms on each row; medians of separate lines do not add up exactly, +-2 ms):
Compared with the 7950X numbers in the issue body (refreshes 10.4 ms, 5,982 of 7,196 known to copy nothing): same shape. The 85-88 % no-op refreshes match #1521 (88.5 % on a Ryzen 7 5700X), and #1338 (also a 2070 SUPER) shows the submitting thread blocked much of the wall time.
Reading the frame line. Ours showed
38.9 preparing: copies 19.0, textures 1.9; 3.6 on the GPU; 18.2 copying back. From our reading of the code (not stepped through):VICTORY_RELAY=2), beside the submitting thread. That thread'srelay ... landing in allline shows 34 ms per frame, of which 20-21 ms is waiting for the card with nothing to land; its working time (14.5-15.4 + 3.2 merging) is close to the 18.2.Limits of this data. The three runs are one machine. Each carried an in-run A/B of an unrelated switch (a different one per run); those arms changed frame time by less than 1 ms, so the medians above mix both arms. Spec dependence: that the submitting thread paces the frame and that most refreshes copy nothing look general (#699, #1521, #1338). The size of each span may depend on 8 cores / one CCD, 32 GB, and an 8 GB card near its memory budget. Untested: AMD, Series X, frame generation, ray tracing, other CPUs.
Logs: not attached because they name the title; excerpts on request.
A timer for the time the submitting thread spends in the join at the end of a multi-thread refresh flush, next to the "refreshes ... on several threads" count, would split the 16 ms into work and waiting. We are adding one in our branch and will post the split if it changes the picture.
Drafted with AI assistance (Claude Code); measurements are ours.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T23:08:00Z.
Closing this one: it was reported on v2026.11.28.02 or earlier, and a lot has changed since (crash fixes, memory, shaders, warm-up and speed).
If it still happens on v2026.11.29.05, please open a new issue with the newest play log from
%LOCALAPPDATA%\victory\logs\andcrashes.log, and we'll look at it there.