Ray tracing: the structure builder's inputs are found by faults, and faulted pages are served anywhere under one budget #3285
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#3285
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@dyshay on GitHub · 2026-11-29 21:18 UTC · original
What happens
With
VICTORY_BVH_BUILDER=1the title's structure builder reads its inputs by address: the instance arrays at LoadInstances, the bottom levels those name, and the index and vertex buffers at Load/ReloadTriangles. It writes structures by address too. Here, pages it touches that have no copy on the card are found only when shaders fault on them (title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped)). They come in a frame later, and every faulted page anywhere is served under one budget (VICTORY_RT_FAULT_MB, 1024 MiB). In our Series S ray-tracing runs on an RTX 4090 that warning appears 60 to 85 times in 5 minutes.Evidence
VICTORY_BVH_AHEAD=1on in every one of their clean ray-tracing runs. They did not test it alone.The fix (two switches, both off)
VICTORY_BVH_AHEAD=1: the builder's inputs are made ready up front (a registry of its structures and inputs by address, inmemory/known.rs). A view the builder writes is made as long as its structure's known size. Pages the builder writes are taken from title memory once and kept.VICTORY_BVH_KNOWN=1: a faulted page is served only inside a structure or input the registry knows, outsideVICTORY_RT_FAULT_MBbut under the 3 GiB held. Other faulted pages are refused.bvh knownline every 5 s counts faulted pages served (by kind), refused and unplaced, and the pages that came up front.PR: #(to follow)
What to check on other cards
shaders touched pages that had no copywarnings drop withVICTORY_BVH_AHEAD=1? What does thebvh knownline say came up front?VICTORY_BVH_KNOWN=1refuses faults outside known extents. Does any ray-traced picture get worse (missing lighting, black patches), and does VRAM go down?@github-actions[bot] on GitHub · 2026-11-29 21:18 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@dyshay on GitHub · 2026-11-29 21:39 UTC · original
Not a crash report: this is a development issue (a code change and how to test it). The relevant log lines and the numbers from our runs are quoted in the issue body, and the pull request linked here has the tests.
@dyshay on GitHub · 2026-11-30 04:23 UTC · original
Closing this one. Our runs of the port on an RTX 4090 didn't show a gain on the software walk (one run slower, one confounded by an old build), and the hardware DXR path proposed in #3704 replaces the title's software builder and traversal that this tuned. The idea stays with its original author if they want to propose it.