~700 ms synchronous process-memory walk every 5 s (93k regions) freezes the frame #3279
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 OWSLAHD on 2026-11-29T21:16:26Z.
Median 18 fps in the open world (Series X, 2560x1440, DLSS Quality, FG off),
~6,500 draws/frame, but the picture visibly freezes about once every 5 seconds.
F3 frame times show a 100-240 ms longest frame in 61-90% of the one-second
windows, while the median frame is 30-55 ms. GPU time is 3-20 ms except when a
spike lands, where it reads 60-130 ms.
Shaders were preloaded from the F1 menu and the one-time warm-up had completed.
The play log has, every ~5.1 s, a line like:
victory_gpu::procmem: process memory: 32795 MB private ... 50333 MB committed
found by address in 93240 regions (669 ms)
The duration of that walk measured 626-904 ms across runs, and it grows with
the process' region count (93,240 regions after ~40 minutes of play).
NVIDIA GeForce RTX 5080 16 GB, driver 621.40.0
(PCIe Gen5 x16, 2865 MHz; nvidia-smi shows 99% utilisation but only 82 W during
the stalls, so the card is waiting, not computing)
AMD Ryzen 7 9800X3D (8C/16T), 32 GB (2x16 GB DDR5-4800),
Windows 11 build 26300
v2026.11.29.03 (F3 panel: BUILD v2026.11.29.03)
Series X profile, RES 1440 (2560x1440 output), DLSS Quality, DLSS model auto,
frame generation OFF but ready, ray tracing off, MOUSE AND KEYBOARD off,
REFLECTION ESTIMATE off, LIGHT ESTIMATE default, F3 panel off,
page file 32 GB, fullscreen on
What I think is happening
The walk is synchronous: it shows up in the frame time, and right around each
walk the F3 longest frame jumps to 100-240 ms while the median frame stays at
30-55 ms. On a 32 GB machine the process reaches ~33 GB private / ~50 GB
committed, i.e. 93k regions to enumerate, so the walk gets slower the longer
the session runs.
What I tried
in a 5-minute run), so the switch does control this walk. The stutter did not
go away completely, so there is at least one more source - but a 0.6-0.9 s
synchronous stall every 5 s is worth fixing on its own.
Possible directions
blocking the submitting thread.
values for the rest.
K32GetProcessMemoryInfo / QueryWorkingSet for the totals the panel needs.
Second, smaller observation (same run)
VRAM is over budget: 13.3 GB of 15.0 GB local plus 7.4 GB "shared with the
card", and the texture queue reports 105 MB free in texture blocks. Dense
scenes measure ~20 us of GPU time per draw over ~6,500 draws. If that is
related, it may deserve its own issue.
victory-nvidia-play-20261129-205932-26852.log
victory-nvidia-play-20261129-210549-34284.log
crashes.log
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by OWSLAHD on 2026-11-29T22:03:47Z.
Looks like this is the same walk as PR #2783 (item 1: make the 5 s
VirtualQuery walk diagnostics-only, VICTORY_PROCESS_MEMORY=1 to opt in).
Our numbers are from a different machine and a longer session, so they may be
useful to that PR rather than as a separate bug report:
(the 1.5-1.6 s in #2783 was measured on a 5600; ours is a 9800X3D, so the
walk itself is proportional to region count, not CPU speed)
5-minute run) but does not remove all hitching, so there is at least one
more source - #3267 (texture census) is a likely one.
exactly what I saw; I had worked around it with VICTORY_WAVE_FOLDED=0.
Happy to close this one if #2783 lands; otherwise I can re-test with that
build and report the before/after on 32 GB.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mstrmoos on 2026-11-30T01:13:50Z.
Some timeline data on why the walk hurts even though it runs on its own thread (diagnostics build,
VICTORY_TIMELINE, RTX 5080 / 9800X3D, Series X profile, 1440p DLSS Balanced, FG off, main829188e9plus a few perf picks):victory-process-memorythread made 2,099VirtualQuerycalls (418 ms, longest single call 106 ms). At the same time the guards' 64 KiBVirtualProtectcalls on the title's own threads (write faults) took up to 14.4 ms each, several of them on different threads at once (11.2, 11.1, 10.3, 5.7 ms side by side).VirtualProtect: about 440–520 µs with the walk, against about 100 µs in the same capture of a build without the walk.VirtualQuerytakes it shared, and every protection change needs it exclusive. The present's critical chain in those frames ran through title threads sitting inkernel: VirtualProtect.Matching what OWSLAHD saw: with
VICTORY_PROCESS_MEMORY=0the median frame did not move for us (38.4 ms both ways in back-to-back 150 s runs). The walk shows up as 10–15 ms spikes every 5 s, not as a lower average. Making it opt-in, as #2783 item 1 and #2877 do, looks right.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Trillazill on 2026-12-01T06:22:02Z.
Two more data points, RTX 4080 / 32 GB, Series X, prison cell, input from
VICTORY_KEYS_FILE:5fabb46e: 137 walks over 106–115k regions, median 886 ms, max 1,207 ms.41adb551, withprocmem::on()madetoggled!soVICTORY_AB=20,VICTORY_PROCESS_MEMORYflips it every 20 s in one run: in a steady stretch the p90 frame was 80.9 / 89.0 / 45.1 / 73.2 ms with the walk on and 56.2 / 46.9 / 46.6 ms with it off. A second run of the same A/B did not separate them (all phases 41–45 ms mean). Spikes in the list translation time (4–5x per call) lined up with walks ending in an earlier run.Not conclusive alone, but it points the same way as the numbers above. #2877 and #2783 both conflict with main now.