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#2658
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?
@green2345 on GitHub · 2026-11-29 15:39 UTC · original
Hardware
VICTORY_TEXTURE_DROP_MIPS=2,VICTORY_MWAITX_SLEEP=1)Regression summary (
9ce3cf9->829188e)On an 8 GB VRAM / 16 GB RAM system,
829188eintroduced heavy texture pool thrashing and a large VRAM/RAM + CPUpreparingregression compared to9ce3cf9(ande1f2eb6):9ce3cf9(2026-11-28)e1f2eb6(2026-11-29)829188e(2026-11-29)preparing/copiesLog highlights (
829188e)the pass over textures picked by index, in the last 5 seconds: 516 ms in all ... waited for locks: the queue's 138 ms by the pass (690 ms by other threads) ... slots taken 22616: ... 7718 held back for roomuploaded since the start: 72534 textures, 30568 MB829188e:VICTORY_LEVELS_ON_DEMAND=auto,VICTORY_POOL_SMALL=1,VICTORY_FRAMEGEN_ROOM_RESERVE=1,VICTORY_WINDOW_KB=1024,VICTORY_TEXSPK_PASS_MS=8,VICTORY_WINDOW_TAILS=1.VICTORY_PIPELINE_WORKERS=12on 16 GB RAM / 8 GB VRAM during fresh shader compilation pushed RAM to 22.1 GB and VRAM to 7.9/7.0 GB and crashed; lowering toVICTORY_PIPELINE_WORKERS=4prevented the compile crash, but the texture thrashing & high VRAM/RAM remain after compilation finishes.victory-nvidia-20261129-181037.log
@green2345 on GitHub · 2026-11-29 15:46 UTC · original
Attaching both full logs for direct comparison (Windows 11
10.0.26100, NVIDIA driver610.88):victory-nvidia-20261128-215848.log— fast run on9ce3cf9victory-nvidia-20261129-181037.log— regression run on829188elogs_4060_regression.zip
@metaflanger on GitHub · 2026-11-29 16:16 UTC · original
The numbers point to a thrashing loop rather than a larger working set, and I think
VICTORY_POOL_SMALL=1 (new in
829188e) is what closes the loop on an 8 GB card.Why this looks like a loop. 1,766 MB over 15 min is ~118 MB/min; 30,568 MB over 10 min
is ~3,057 MB/min, about 26x more. But 72,534 uploads of 30,568 MB average 0.42 MB each,
so these are small and mid-size mips being re-uploaded, not new assets arriving. Your own
line — slots taken 22616 ... 7718 held back for room — is the signature: the small pool
takes slots, cannot fit them, and recycles the same ones a few frames later. They are
needed again almost immediately, so each eviction buys one frame and costs a re-upload.
Most likely trigger: VICTORY_FRAMEGEN_ROOM_RESERVE=1 on 8 GB. The frame generation
reserve shrinks the texture budget; at 6.8–7.9 GB used against a 7.0 GB budget the pool
is effectively PRESSED the whole run, so allocation falls through to the eviction path
every frame, and the victim is chosen by recency only — which, in a scene where the same
textures come back every few frames, is the worst possible choice. That also fits the
1,570 dropped draws (94–118 before): slots are being taken away, not run out of.
How to confirm it (no rebuild, 5 minutes). Change one switch only:
Same save, same spot in Leonida Keys, about 10 minutes.
What would count as proof. In that run's log, "uploaded since the start" should grow at
roughly 100–250 MB/min instead of ~3 GB/min (the texture count per minute drops by an
order of magnitude), VRAM should sit comfortably below the budget, and dropped draws
should return to the 100–200 range. If bytes and the texture count fall together, the
reserve is the trigger. If bytes fall but the count stays in the tens of thousands, it is
VICTORY_POOL_SMALL=1 itself, and the next one-switch test is VICTORY_POOL_SMALL=0. If
neither moves, the defaults I would look at next are VICTORY_LEVELS_ON_DEMAND=auto and
VICTORY_WINDOW_KB=1024.
If the reserve turns out to be the trigger, the fix I would propose is to make eviction
age-aware: stamp each pool entry with the frame it was last used and refuse to evict
entries touched within the last one or two frames, falling through to the existing
drop/spill path instead of recycling a slot that is about to be needed again. I can write
that as a separate PR once your run above confirms which of the two switches is
responsible — please post the new log with it, and I will attach the patch and a
before/after run on an 8 GB card.
@green2345 on GitHub · 2026-11-29 16:55 UTC · original
@metaflanger Thanks for the detailed breakdown! I ran both one-switch tests on
829188e(verified in the switches line of each log viavictory-settings.txt, everything else unchanged):1.
VICTORY_FRAMEGEN_ROOM_RESERVE=0(victory-nvidia-20261129-192047.log)Did not stop the thrashing — in fact VRAM pegged immediately and the game spent most of the ~13.5 min run stuck on the loading screen after briefly entering the world:
uploaded since the start: 83,024 textures, 24,812 MB (~1.8–2.0 GB/min even while stuck loading)held back for room: ~6,500 per 5 s windowmemory now: 7,992 / 7,120 MB VRAM (+ 2,478 MB shared), 17.4 GB committed2.
VICTORY_POOL_SMALL=0(victory-nvidia-20261129-193526.log, ~12.5 min in Leonida Keys)droppeddraws fell from 1,570 to ~107 in the final steady-state window, but the texture upload loop, VRAM/RAM bloat, and FPS regression did not go away:108.3 ms/frame(79.0 ms preparing: copies41.8 ms / 52.6 MB),6,252 draws/frameuploaded since the start: 68,346 textures, 29,258 MB (~2.34 GB/min)held back for room: 4,523–6,988 per 5 s windowmemory now: 7,399 / 7,141 MB VRAM (+ 5,193 MB shared), 21.4 GB committed (Streamline: Exceeded VRAM budgetspamming every frame)So neither
VICTORY_FRAMEGEN_ROOM_RESERVE=0norVICTORY_POOL_SMALL=0breaks the loop on 8 GB VRAM. Looks like the next suspects are indeedVICTORY_LEVELS_ON_DEMAND=autoorVICTORY_WINDOW_KB=1024— happy to run those next if helpful!Both full logs attached in
logs_4060_switches.zip.logs_4060_switches.zip
@Jesper-Andersson on GitHub · 2026-11-29 20:41 UTC · original
Another 8 GB data point for the next one-switch test. RTX 2070 SUPER 8 GB, Ryzen 7 5800X, 32 GB, PCIe 3, no ReBAR, Series S, DLSS Performance, frame generation off, same scripted route each run (about 375 s). Different card and workload, so not a reproduction of yours.
829188e9plus our launch set (1280 MB target reserve and a few other switches), LEVELS_ON_DEMAND at auto in every run: POOL_SMALL=0 alone (folding on) 14.57 fps (n=1); folding off alone 14.92 (n=1); neither switch changed (14.87, 14.76, n=2); both together 16.25 and 16.61 (n=2). So POOL_SMALL=0 alone did nothing for us either, matching your result; only the pair moved fps, and we have no run isolating why.On v2026.11.29.02 (
f889bb07), final "uploaded since the start" and the card's own memory in use:Two of the three LEVELS=0 runs (205110, 210536) and one of the three auto runs (202401) also carried our extra switches, and the auto runs 203732 and 202401 had folding on plus two picture pins, so it is not a clean one-switch comparison. The texture count stayed similar; we have not checked what the byte counter counts. fps did not clearly follow (16.44 vs 17.20, n=1 each, unresolved).
Suggestion: try VICTORY_LEVELS_ON_DEMAND=0 next and watch "uploaded since the start" and the memory line. Not tested by us: your setup, frame generation, other cards. Longer step-by-step: #3199.
Drafted with AI assistance (Claude Code); measurements are ours.
@green2345 on GitHub · 2026-11-30 10:16 UTC · original
Follow-up test on clean
main(41adb551/v2026.11.29.05) withVICTORY_LEVELS_ON_DEMAND=0Following up on the results above (and confirming #3258) on RTX 4060 8 GB / i5-11400F / 16 GB RAM (Windows 11, driver
610.88, Series S, DLSS Balanced, DLSS FrameGen 2X, ~8.3 min Leonida Keys gameplay).Key switches changed vs previous run:
VICTORY_LEVELS_ON_DEMAND=0(withVICTORY_POOL_SMALL=1kept at default)VICTORY_PROCESS_MEMORY=0829188e,POOL_SMALL=0, ~12.5 min)41adb551(LEVELS_ON_DEMAND=0, ~8.3 min)uploaded since the start)68,346textures / 29,258 MB40,100textures / 1,289 MB (~22x less)held back for room(per 5s interval)4,523 – 6,988Exceeded VRAM budgetwarnings7,399 / 7,141 MB(+5,193 MBshared)Last 5s interval from log (
victory-nvidia-20261130-130135.log):Takeaway:
VICTORY_LEVELS_ON_DEMAND=0completely eliminates the 8 GB VRAM overfill and texture thrashing on RTX 4060, even withVICTORY_POOL_SMALL=1left on.Full log attached:
log_4060_41adb551_lod0.ziplog_4060_41adb551_lod0.zip