GPU: guard real VRAM budget margin in room() (VICTORY_ROOM_REAL, from FoxHound v0.8) #1888
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1888"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Nosheboo on 2026-11-29T01:42:40Z.
Fixes #
What it changes
Ports
VICTORY_ROOM_REAL(REAL_MARGIN,real_budget_blocks(), androom_allowed()) fromreadmet3xt-lab/foxhoundcommit4349ab56(GPL-3.0-or-later) intocrates/victory-gpu/src/resource.rs(room()).REAL_MARGIN) headroom margin below DXGI's real VRAM budget inroom()(used >= budget.saturating_sub(REAL_MARGIN), inclusive) so texture/host allocations back off or evict instead of pushing the device into0x887A0006(DXGI_ERROR_DEVICE_REMOVED) when real VRAM nears capacity.VICTORY_ROOM_REAL=0(viacrate::toggled!("VICTORY_ROOM_REAL")) to restore the prior behavior.crates/victory-gpu/src/resource.rs.How it was tested
clippy, andrustfmtverified locally; live in-game telemetry A/B pending after merge/release testing.room()did not enforce a real VRAM margin check below DXGI's reported real budget whencreditedallocations were checked.room()blocks new allocations once real VRAM usage reachesbudget.saturating_sub(256 MiB)unlessVICTORY_ROOM_REAL=0; verified byresource::tests::real_budget_blocks_near_or_over_vram_budgetcovering headroom, inclusivebudget - 256 MiBboundary, over-budget,VICTORY_ROOM_REAL=0bypass,credited == false,u64::MAX, and0.cargo testpassed for the crates it touches: yescargo test -p victory-gpu --lib --locked -- --test-threads=1onde2d4ba:590 passed; 0 failed; 44 ignored(--test-threads=1used due to pre-existing parallel watch flake #724;VICTORY_HOME/LOCALAPPDATAisolated,VICTORY_STREAMLINE_DIRunset).cargo clippy -p victory-gpu --no-deps --all-targets --locked: 0 warnings in touched lines ofcrates/victory-gpu/src/resource.rs(only pre-existing baseline warnings elsewhere invictory-gpu).rustfmt --edition 2024 --config-path rustfmt.toml: 0 formatting diffs on touched lines incrates/victory-gpu/src/resource.rs.cargo xtask policyfails on pre-existing untouchedcrates/victory-shader/src/emit/lower.rs(> 655,360 bytes) already present onmain(#1460/#1493/#1527).Checked for overlap
VICTORY_ROOM_REALincrates/victory-gpu/src/resource.rs.Council review
gpt-6-luna(xhigh)C2inclusive>=boundary)C2resolved)gpt-6-luna(xhigh)nosh-perf)gpt-6-luna(xhigh)H1baseline,H2–H3,H5)H1acknowledged baseline,H2–H5resolved)Created with Gemini Pro Orchestrator (Neon) and reviewed by GPT-6 Luna (xhigh) in T3 Code.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by amazedturnip on 2026-11-29T05:38:57Z.
Tested on RTX 5070 Ti 16 GB across 20+ min sessions. Real DXGI VRAM budget margin in room() works cleanly without false throttling or crashes.