GPU: guard real VRAM budget margin in room() (VICTORY_ROOM_REAL, from FoxHound v0.8) #1888
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!1888
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Nosheboo on GitHub · 2026-11-29 01:42 UTC · original
Nosheboo:port/foxhound-room-real→main· +82 −2 · 1 files · 1 commits · merged 2026-11-29 08:16 UTCFixes #
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.
7c0cb4f814tode2d4ba1b7github-bot referenced this pull request2026-11-29 03:44:35 +00:00
@amazedturnip on GitHub · 2026-11-29 05:38 UTC · original
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.