v2026.11.29.01: memory guard puts off every compile during the world load (0.1 fps): it ignores pagefile growth #2385
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 Brillanc3 on 2026-11-29T12:36:44Z.
What you see
Since v2026.11.29.01 the game drops to 0.1-0.2 fps as soon as the world loads (title screen and menus run at 144 fps). v2026.11.28.03 played on the same PC.
The log at that moment is full of:
Each
0x8007000ecomes in the same millisecond as a memory-guard refusal: it is the guard's ownmemguard::refusal(), not the driver running out of memory.Cause.
memguard::figures_now()(added in60a08ef) reads the commit left fromullAvailPageFile, the commit limit of the moment. With a system-managed pagefile that limit stays a few GB above the commit while the world loads (the process goes from ~11 to ~25 GB commit in 15 s), so the guard sits at its 4096 MB floor and keeps putting compiles off.residency.rsalready counts what the pagefiles can still grow by (available_commit, #339) and in the same run reportsavailable_commit_mib=85115, but the memory guard does not use it.0x8007000erefused--res 4kVICTORY_COMMIT_FLOOR_MB=0free_commit_mb=80761VICTORY_COMPILE_MEMORY=0set in the environment does not help as a workaround:victory playclears everyVICTORY_*variable not inKEPT.VICTORY_COMMIT_FLOOR_MB=0invictory-settings.txtworks.Even with the fix the game stays well under the 144 fps of the menus here (free physical memory falls to ~1.6 GB with ~29 GB committed). That part may be #2129 or memory pressure and is not claimed to be fixed.
GPU and driver
NVIDIA GeForce RTX 5080 16 GB, driver 617.42
CPU, RAM and Windows version
32 GB RAM, Windows 11 Pro 10.0.26200, pagefile system-managed on C: (commit limit 46.5 GB at start)
VIctory release or commit
v2026.11.29.01 (release), and main at
829188ebuilt from source (with #2060 for the 21:9 start crash)Settings
Series X,
play --res 1440 --dlss quality --fg-type auto --fps 1000(3440x1440 monitor), also--res 4kLogs
Available on request (they contain local paths).
Are you working on a fix?
Yes, PR to follow.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T16:00:54Z.
Update: v2026.11.29.01 lost some GPU memory handling (it was removed along with another change), so memory can climb until pipelines fail with 0x8007000E and the game sits on a black or frozen picture at ~0.2 fps. The next build puts that handling back. Until then,
--set VICTORY_WAVE_FOLDED=0also helps, and If you need it playable right now, v2026.11.28.03 is the last build without these regressions.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AimLogin on 2026-11-29T20:34:29Z.
A second variant of this, which goes through the memory guard's physical-RAM gate rather than the commit floor, ended in a crash here. It was a cold host pipeline library on
f889bb07(+ #2853 + #2265, nothing in memguard/compilemem changed), Windows 11, RTX 4060 Ti 16 GB, 32 GB RAM, driver 621.01, DLSS Quality, a new game into the intro.Measured from the run's own log and per-second counters:
VICTORY_MEMORY_FLOOR_MBsoft floor the guard runs driver compiles one at a time. Compile throughput fell to about 2/s, and to 0.27/s at the end. The ungated cold9ce3cf9erun made about 11/s on the same PC.0xc0000005at+0x23cf683,write 0x0, the watchdog trap described indocs/crash-addresses.md. We keepVICTORY_TITLE_WATCHDOG=1.0x8007000ewas the guard's own refusal.host-pipelines.bin(656,968 bytes, last saved 3 min before the crash), because it is saved when the workers drain andVICTORY_LIBRARY_SAVE_TIMER_Sis off by default.So on a cold start the free-RAM gate alone can stall the render path long enough for the title watchdog to fire, even with plenty of commit. Two observations that may help whichever fix lands here (#2717, #2743, #2578):
We are testing
VICTORY_MEMORY_FLOOR_MB=0(commit floor kept) plusVICTORY_LIBRARY_SAVE_TIMER_S=30next. That is not measured yet; I'll add the result here.Analysis was AI-assisted; numbers are from our run's logs.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AimLogin on 2026-11-29T20:52:20Z.
Follow-up to my comment above, with the test I said I'd run.
The retry used
VICTORY_MEMORY_FLOOR_MB=0(commit floor kept) plusVICTORY_LIBRARY_SAVE_TIMER_S=30on the same build and PC. It also ended in the title's watchdog trap (+0x23cf683), about 100 s in. The memory guard was not involved this time:So lifting the free-RAM floor removes the first run's mechanism, but it is not enough on its own.
The cause this time was the inline compute wait (from
8d5f456f, capped by88244e8d):9ce3cf9erun on this PC. Its world-load group compiled 3–7× slower here, with every core busy compiling (8 workers, the driver's threads and the translation threads). That contention is our reading, not a measurement of the cause.Two corrections to my first comment:
VICTORY_LIBRARY_SAVE_TIMER_S=30saved nothing. Under host memory pressuresave()switches to a 600 s interval, so every tick returned early.Suggestion:
We're working on a patch along those lines and will open a PR if it holds up in our runs.
Analysis was AI-assisted; numbers are from our run logs (code locations read in
f889bb07).