Reduce memory use on 8 GiB GPUs #1411
No reviewers
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!1411
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1411"
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?
@mestremario3 on GitHub · 2026-11-28 19:16 UTC · original
mestremario3:codex/memory-8gb→main· +63 −33 · 5 files · 5 commits · merged 2026-11-29 08:16 UTCSummary
VICTORY_LEVELS_ON_DEMAND=0opts out;=1enables it on larger adapters.Motivation
Small VRAM budgets can leave textures waiting for room while render-target headroom is reserved. On-demand mip residency avoids allocating card memory for texture levels the title does not currently hold. A smaller idle staging cache also reduces retained host RAM.
Validation
cargo check -p victory-gpu -p victorypassed.git diff --checkpassed.@Jesper-Andersson on GitHub · 2026-11-28 20:52 UTC · original
Measured data on the on-demand-levels part, from an 8 GB card (RTX 2070 SUPER 8 GB, Ryzen 7 5800X, 32 GB; trustno1 main
8fc22547plus #482 (keyboard and mouse, Dyslex1337, off by default); not measured on this PR's base32ecacfa, which is 77 commits newer. Series S profile, DLSS Performance,VICTORY_CARD_ROOM_FOR_TARGETS_MB=1280in every arm, so the new 2.5 GiB default was not in play; one open-world route, same length per arm, 2 runs per arm).VICTORY_LEVELS_ON_DEMAND=0=1=1+VICTORY_LEVELS_MIN_KB=4096The fps differences are all within noise (same-arm spread up to 0.23 fps). In one visual check with
=1we saw more black textures. #1401 (RTX 3070 8 GB, card full on 381 of 494 room checks) reports the same with=1:15191 uploads left a held level without memoryand missing textures, fixed by going back to0. So on 8 GB cards that run near their budget, turning it on by default may trade VRAM for black textures, without an fps gain.Not tested here: this PR itself (the automatic default for budgets up to 8 GiB), its 2.5 GiB reserve and the 256 MiB staging cap; other routes; other cards. On the reserve: as far as I can see, without the env var the reserve is already sized from the targets' peak (
targets_kept_from_peak), so the 3 → 2.5 GiB change would mostly matter where that peak is large; no data on that from here.@burgmarcos on GitHub · 2026-11-28 21:57 UTC · original
Validated on RTX 3050 4 GB (Series S, tier 4): enabling VICTORY_LEVELS_ON_DEMAND=1 made performance worse (0.3-4.7 fps vs 29.9 baseline) and increased waiting textures from ~18k to ~27.6k. Not recommended for 4 GB cards.
github-bot referenced this pull request2026-11-29 03:44:35 +00:00
@icdmkg2 on GitHub · 2026-11-29 17:46 UTC · original
A live 8 GB measurement, since the PR notes it wasn't validated in game yet.
Setup: RTX 5060 Laptop GPU (8 GB, DXGI budget about 7.1 GB, so
autoturns it on), Ryzen 7 H 260, 32 GB, Windows 11, driver 621.24.mainat55d06914, release build,play-foxhound.ps1defaults otherwise, Series S, DLSS performance, the same save (the prologue's cell), driven by a script: 60 s measured after a 30 s settle, shader cache warm.VICTORY_COMMIT_FLOOR_MB=1024was set in all runs (with the default 4096, the memory guard kept putting compiles off on this PC). OnlyVICTORY_LEVELS_ON_DEMANDchanges in the last row:auto→ on)VICTORY_POOL_SMALL=0(control)VICTORY_LEVELS_ON_DEMAND=0Texture waits were about the same either way (19–21 "no room, new textures wait" lines a run), so on this card the saving doesn't show up as fewer waiting textures. The cost lands on the submitting thread: snapshots (0 → 12 ms) and refreshes (+9 ms). That fits the reports above from the 2070 SUPER and the 3050.
So
autocurrently halves the frame rate on at least this 8 GB card, by default. Keeping it opt-in (=1) seems safer until its per-frame cost on the submitting thread is down.