gpu: keep faulted pages under a budget #722
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!722
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-722"
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?
@tharun-37 on GitHub · 2026-11-28 04:28 UTC · original
tharun-37:fix/rt-fault-pages→main· +169 −16 · 2 files · 1 commits · merged 2026-11-29 00:24 UTCFixes #688.
Faulted pages were counted once and never released, so after the 2048-page budget was spent later missing pages read zeros for the rest of the run. This keeps faulted arena pages under \VICTORY_RT_FAULT_MB\ (1024 MiB by default), refreshes pages that fault again through the existing write-watch path, and gives back the oldest pages that no packed structure owns and no shader has looked at lately. Pages taken or looked at in the last few frames are kept, so the builder still has them. \VICTORY_RT_FAULT_KEEP=0\ keeps the old once-only budget for comparison.
Adds tests for the budget parsing, the switch, and the retired-page order. Documents both switches.
Validation: \cargo test -p victory-gpu --locked; \cargo check --workspace --locked; \cargo xtask policy.
AI-assisted (OpenCode).
@Dukestar69 on GitHub · 2026-11-28 05:16 UTC · original · approved these changes
LGTM — verified on Windows:
cargo test -p victory-gpu --lib memory::passed (4/4, includingfault_budget_and_switch_have_sane_defaultsandthe_oldest_idle_fault_pages_go_back_first)cargo xtask policypassed (294 files ok)Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
@jptorres96 on GitHub · 2026-11-28 09:17 UTC · original
save_sharetests: 5/5 passed, three consecutive runs. One earlier run hit OS error 32 (file in use) inthe_game_settings_are_never_shared_and_the_players_own_are_kept. I couldn't reproduce it, and it looks like another process was holding the file, but it might be worth making the test use a unique temp dir.Env: RTX 4080 SUPER (driver 621.01), Ryzen 5 5600X, Windows build 26300, rustc 1.98.1, DXC 1.9.2609.5 (
VICTORY_DXIL),--test-threads=1.VICTORY_INDIRECT_REST=1set to sidestep main's two indirect budget-test failures (fixed in #67), unrelated to this PR.