memory: recycle a 512 MB budget of ray-tracing fault pages #401
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!401
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Kikoarl on GitHub · 2026-11-27 21:55 UTC · original
Kikoarl:feat/rt-recycled-page-budget→main· +423 −46 · 1 files · 1 commits · closed without mergingSummary
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 failed@Mumogg on GitHub · 2026-11-28 16:59 UTC · original
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.)
@trustno1-coder on GitHub · 2026-11-28 20:23 UTC · original
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