VRAM at 99.9% of budget: ~1.9 GB free in partly used texture blocks, no residency priorities set #691
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#691
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?
@Machad3x on GitHub · 2026-11-28 03:35 UTC · original
Setup: Windows 11, RTX 3080 Ti 12 GB, Ryzen 7 5700X, 32 GB RAM, Series X profile, title ray tracing on (VICTORY_BVH_BUILDER=1), 240 s runs from the prison cell scene.
From a 240 s run's log:
SetResidencyPriority. Over budget, Windows picks what to demote, which may include BVH arenas and card copies that rays read every step.MakeResidentslows from about 0.2 ms to 0.7 ms per call at the budget. One wait took 1568 ms, while card use jumped from 8.4 to 10.9 GB.What we are testing
pool.rs: best-fit placement into the fullest block, so sparse blocks drain and are released.VICTORY_RESIDENCY_PRIORITY.Branch
tn1-vramon Machad3x/VIctory-nvidia. Results will follow here.@github-actions[bot] on GitHub · 2026-11-28 03:35 UTC · original
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)
@Machad3x on GitHub · 2026-11-28 03:38 UTC · original
GPU: RTX 3080 Ti 12 GB, driver 621.40. Windows 11 (build 26300). Built from source, diag profile. Not a crash: the session stays alive for the whole 240 s run, so there is no crashes.log for it. The full play logs contain local paths, so these are the relevant lines with paths removed. More lines on request.
@mfdbenm on GitHub · 2026-11-28 04:06 UTC · original
Confirming the exact same VRAM spillover pattern on an RTX 5070 (12GB) in v2026.11.27.9 (full telemetry, CapFrameX captures, and play logs in #694):
FG OFF (VICTORY_TEXTURE_ROOM_PERCENT=86): 10.1 / 12.0 GB Dedicated + 4.6 GB Shared (28.4 / 31.9 GB System RAM — 89%)
FG 2X (VICTORY_TEXTURE_ROOM_PERCENT=80): 9.8 / 12.0 GB Dedicated + 4.6 GB Shared (28.1 / 31.9 GB System RAM — 88%)
Even with the automatic 80% texture room cap on FG 2X and full 88,584-pipeline pre-compilation, shared GPU memory spillover stays flat at 4.6 GB
@CuteBooty on GitHub · 2026-11-28 05:11 UTC · original
Data point: card memory with ray tracing on, 8 GB card, two runs (one run each)
Hardware: RTX 3070 8 GB (driver 621.24), Ryzen 7 5800X3D, 32 GB RAM, Windows 11.
Build: main
63b902fe1plus PRs #630 and #697 and small local commits. Series S, 1920x1080, DLSS performance, frame generation 2x,victory.exe run.Settings: VICTORY_TEXTURE_ROOM_PERCENT=85, VICTORY_SLOT_EVICT=1, VICTORY_CARD_ROOM_FOR_TARGETS_MB=2048, VICTORY_TEXTURE_POOL=1, VICTORY_SOFT_VIEWS=copies, VICTORY_BUFFERS_AHEAD=0, VICTORY_WATER_LIGHT=0.
Run N: ray tracing off, 16.7 min. Run R: VICTORY_BVH_BUILDER=1, 11.3 min. Rates are straight-line fits over the settled part (after loading, from about 2.5 minutes in), taken from the room, memory and "title memory by address" lines.
Texture copies plus free space inside blocks add up to the blocks (2944 in run N), so the block part cannot grow. In run N the growth of "in use" (+500 MB in 13 minutes) is about equal to card buffers made (+137 MB) plus host render/write copies (+385 MB, never falls). Both runs sit at "no room, new textures wait" (about 106 of 121 room lines in run R).
Collapse in run R (last 110 s, rendered fps 13-14 down to 4-11):
The arena count only went up in the whole run (the pages held dropped by at most 30 once). The card stayed at 100 % busy, 1980 MHz and 98-133 W in both runs, and the CPU was not full (game threads 8-10 cores of 16). Waits for new memory per 5 s stayed at 180-490 ms, which is too small to explain frames of 140-170 ms. So in this run the slowdown came with more builder work and more arenas, not clearly with the card running out of memory. One run each, so this is a data point, not a conclusion.
Lines (timestamps and paths removed):
Measurements and this report were prepared with an AI assistant (Claude Code); the runs were played on my machine.
@Machad3x on GitHub · 2026-11-28 07:09 UTC · original
Update from our fork (batch 9). RTX 3080 Ti, driver 621.40, Windows 11 Pro build 26300.
Changes:
Bug in our first version: the reserve's settle clock ran during the menus, so the reserve was given up before the world's targets existed. Frame time went to 85.2 ms per frame, with the GPU at 30.9 ms. Starting the clock at the world's first frame fixed it: 67.0 ms per frame.
Residency priorities off: 106.1 ms per frame with the GPU at 62.6 ms, so they stay on.
Early loading: the first 80 s average 148.5 ms per frame, down from 261.3.
Still open: new card memory still waits about 27 s in total over a 240 s run.
@kalberts0089-hash on GitHub · 2026-11-29 09:23 UTC · original
@Machad3x thanks for the batch 9 numbers. Most of what this issue asks for is now upstream, behind switches, and it's in release v2026.11.29.01:
5b6d24c7VICTORY_POOL_FULLEST=0turns it off49dd441aVICTORY_RESIDENCY_HIGH=1de2d4ba1VICTORY_ROOM_REAL=0turns it offEnqueueMakeResidentinstead of the blocking callaf3adb39VICTORY_RESIDENT_LATER=1A few notes:
VICTORY_ROOM_REAL, because 11232 is above 11254 - 256 (resource.rs:2127).pool.rs:382), but inside the chosen blockRanges::takestill takes the lowest address that fits (pool.rs:242).VICTORY_RESIDENCY_HIGHis off by default. Your 106.1 vs 67.0 ms per frame with priorities off/on is a good argument for turning it on.VICTORY_RESIDENT_LATERmight help with the 1568 ms wait. The queued request is still waited for before a descriptor slot is written, though, so the wait may just move rather than go away.It would be worth running your 240 s run on the release once with the defaults and once with
VICTORY_RESIDENCY_HIGH=1.VICTORY_POOL_STATS=1adds atexture blocksline showing how full the blocks are.@trustno1-coder on GitHub · 2026-11-29 23:08 UTC · original
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.