memory: recycle a 512 MB budget of ray-tracing fault pages #401
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/401"
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 Kikoarl on 2026-11-27T21:55:13Z.
Summary
Ports the 512 MB recycled ray-tracing fault-page budget and fault-miss breakdown from
fxceless/victory-forkcommit3e573d2556adc5a5b22ccd2d6d92231a72ee55bb(GPL-3.0-or-later), rebased ontomain(df2daaf).Changes
crates/victory-gpu/src/memory.rs:goes_first,fault_room,give_back), and reports the per-frame fault-miss breakdown while preserving merged PR #88 (Memory::another).Distinct from PR #181 (
shadow::exact()buffer pooling) and PR #295 (placed-page write-watch stamps).Verification
Verified on Windows (
x86_64-pc-windows-msvc) againstmain(df2daaf):git diff --check main..HEAD— cleancargo test -p xtask --locked— 6 passed, 0 failed (asset policy: 287 files ok)cargo clippy -p victory-gpu --all-targets --locked— exit 0, 0 warnings in changed files (mainhas pre-existing clippy warnings in untouched files)cargo test -p victory-gpu --locked memory::— 5 passed, 0 failedImported from trustno1-coder/VIctory-NVIDIA. Originally posted by Mumogg on 2026-11-28T16:59:16Z.
Data point from Linux (Wine + GE vkd3d-proton, RTX 5070 Ti 16 GB, Series X profile, title ray tracing on with VICTORY_BVH_BUILDER=1). Two 8-minute runs on the same save, without and with fxceless 3e573d25 (the same change as this PR):
made=0, with about 150-330 pages a frame left without a copy. Cars turned lime green about when the cap was reached.On frame rate: ray tracing stays expensive on this card (9-12 fps at 4K output), but that cost is separate from this change. The builder dispatches (150-1500 a frame) account for most of it. (AI-assisted test and write-up.)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T20:23:16Z.
Thanks for this. I'm closing it without merging because #722 covers the same problem (#688: the faulted-page budget ran out and never came back) and is going into main: faulted pages are kept under a reusable budget (
VICTORY_RT_FAULT_MB,VICTORY_RT_FAULT_KEEP). The two conflict throughout memory.rs. If yours does something #722 doesn't, please rebase it on main once #722 is in and open a new pull request.Pull request closed