perf(gpu): reduce host RAM footprint via VM decommit and pool/shader trimming #205
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!205
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-205"
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?
@Vladimir-Human on GitHub · 2026-11-26 11:30 UTC · original
Vladimir-Human:perf/ram-footprint-decommit→main· +3350 −252 · 12 files · 1 commits · openSelective port of host System RAM reduction and Windows MEM_DECOMMIT VM reclamation from xceless/victory-fork#1286 onto vatarmanz/VIctory-7900XTX.
Summary
oom(): tracks Block::last_used_ms and releases aged whole-free 64 MiB upload STAGING (and under pressure/panic, TEXTURES) blocks outside pool mutexes even when VICTORY_RESIDENCY=1 is off, clamping SPARES so Ripe::now() / ake_ripe() does not immediately reallocate.
otes buffers on HostList::reset.
elay_merge, merge_under_writes, placed_copy, and land_back.
elease_dxil(), and rim_shaders_with across graphics and compute pipelines with transparent reload via shader_cache::host_shader.
Verification (CARGO_TARGET_DIR='D:\cargo-targets\xtx-base', CARGO_BUILD_JOBS=2)
am_trim 13/13 passed, pool::tests::trim_idle 2/2, host::spare 2/2, idle_trim 1/1 (0 D3D12 debug errors).
am_trim OS commit stress via K32GetProcessMemoryInfo PagefileUsage: 267.3 -> 10.8 MiB, -256.5 MiB across rounds 0..2).
eplay 1/1 (
am_trim OS commit stress: 356.9 -> 100.4 MiB, -256.5 MiB across rounds 0..2).
5a26c94b59to40090b2613@Vladimir-Human on GitHub · 2026-11-26 14:11 UTC · original
Rebased cleanly onto latest
main(c9c932c:port/guard+port/journal+ README) at40090b2:crates/victory-gpu/src/watch.rs, preservingport/guard(cc761bf)forget_viewsand&gguard handling intitle_memory_unmapping/title_memory_freedalongsideshadow::title_memory_remappedoutsideGUARDS, and clearingclippy::unnecessary-mut-passedintitle_memory_remapped.crates/victory-gpu/src/host.rs:518,063 B(< 512 KiB).xtask policy(266 files ok),cargo clippy -p victory-gpu --all-targets -- -D warnings -A deprecated(default &--features diagnostics:0warnings), andVICTORY_D3D12_DEBUG=1victory-gpu(398 passed; 0 failed; 34 ignoreddefault;450 passed; 0 failed; 34 ignored+replay1/1with--features diagnostics).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.