Memory: fit console memory onto small cards #1477
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!1477
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1477"
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?
@Shad0wrend on GitHub · 2026-11-28 20:31 UTC · original
Shad0wrend:memory/low-vram-accounting→main· +664 −76 · 9 files · 5 commits · closed without mergingWhat
Memory work grounded in the console's documented memory model.
victory.exequeries the DXGI adapter before starting the title. A card of 9 GiB or less gets an 85%-of-VRAM budget cap (max 7 GiB) and no ahead-allocated buffers.VICTORY_LOW_VRAM=0turns it off; F1/menu and--setstill override. The initially tried 512 MiB card-buffer cap, tiled texture levels and fixed texture-room share were removed after A/B: all three were slower on an 8 GiB card.VICTORY_POOL_SPARESto override. Speculative texture prefetch is throttled when the card's texture room line is reached, as well as on host commit pressure.Console::title_memory()now reports the documented advanced figures for both consoles. Series S was reported as 7,776 MiB standard with zero GPU-optimal memory, soXMemGetWorkingSetStatistics.gpu_optimal_limitand the DXGI adapter'sDedicatedVideoMemorytold titles they had no fast memory.XMemGetWorkingSetStatisticsno longer answerstitle_usedwith the whole process commit. It tracks bytes the title committed and mapped from physical pages, by bandwidth class, throughXMemVirtualAlloc, page mapping and free/decommit. Memory transferred to the system is no longer counted as the title's.docs/low-vram.mddocuments the figures, the switches, the A/B result and what is still not emulated. No game paths, logs or binaries are in the repository.In-game A/B (RTX 3070, 8 GB)
Consecutive runs of the same build, matching heavy gameplay scenes by draws/frame:
VICTORY_LOW_VRAM=0)The 512 MiB buffer cap left only 4 card copies instead of 3,407: preparing rose from 80 ms to 287 ms and the card waited 233 ms instead of 32 ms. Card-copy class routing was tried in a stacked commit and removed after measuring 4.77 fps vs 9.25 fps on matched scenes.
Validation
cargo build --release --locked -p victory— passed.cargo test --release --locked -p victory -p victory-gpu -p victory-hle— green (31 + 2 + 553 + 205 + 1 tests, 0 failures).cargo run --release --quiet -p xtask -- policy --staged— passed before each commit.main.The A/B runs were performed by the hardware owner; the final build was smoke-run with the original settings.
79cad8a97cto19f724b86091849af26btoe3a049ffec363a549751to1190108054@Shad0wrend on GitHub · 2026-11-29 01:39 UTC · original
Closing per maintainer request; not pursuing these changes.
Pull request closed