Ray tracing: pages faulted in by BVH shaders stop after 2048 for the whole run (FAULTS_ALL never resets), rays then read holes #688

Closed
opened 2026-11-28 03:37:40 +00:00 by github-bot · 5 comments
Owner

@⁠Machad3x on GitHub · 2026-11-28 03:35 UTC · original

Setup: Windows 11, RTX 3080 Ti 12 GB, Ryzen 7 5700X, 32 GB RAM, Series X profile, title ray tracing on (VICTORY_BVH_BUILDER=1), 240 s runs from the prison cell scene.

What happens
When builder or ray shaders touch title pages that have no host copy, memory.rs brings them in by fault. The budget FAULTS_ALL=2048 is never refilled. Once it is spent, later missing pages read 0 for the rest of the session.

The log keeps reporting about 600 such pages per frame long after start:

title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped) ... pages=760 made=0
... per frame ... 607.5 pages that had no copy

Rays that cross those holes miss geometry. In our runs, interiors lack the bounce light the console shows.

What we tried

  1. A budget that refills each report window with a ceiling of 4096 pages. The ceiling filled at about 84 s, and the holes came back.
  2. The same pages were also stale: they are never refreshed when the title writes them. Faults under 4 GiB went from 386 to about 1033 per frame.

Current attempt (untested in game)
Fault pages are kept under a byte budget (VICTORY_RT_FAULT_MB, 1024). They are refreshed through the normal write-watch path. The oldest go back first, but never pages the builder may still store to. Switch VICTORY_RT_FAULT_KEEP. Branch tn1-rtfault2 on Machad3x/VIctory-nvidia. Results will follow here.

**@⁠Machad3x** on GitHub · 2026-11-28 03:35 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/688) **Setup:** Windows 11, RTX 3080 Ti 12 GB, Ryzen 7 5700X, 32 GB RAM, Series X profile, title ray tracing on (VICTORY_BVH_BUILDER=1), 240 s runs from the prison cell scene. **What happens** When builder or ray shaders touch title pages that have no host copy, `memory.rs` brings them in by fault. The budget `FAULTS_ALL=2048` is never refilled. Once it is spent, later missing pages read 0 for the rest of the session. The log keeps reporting about 600 such pages per frame long after start: ``` title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped) ... pages=760 made=0 ... per frame ... 607.5 pages that had no copy ``` Rays that cross those holes miss geometry. In our runs, interiors lack the bounce light the console shows. **What we tried** 1. A budget that refills each report window with a ceiling of 4096 pages. The ceiling filled at about 84 s, and the holes came back. 2. The same pages were also stale: they are never refreshed when the title writes them. Faults under 4 GiB went from 386 to about 1033 per frame. **Current attempt (untested in game)** Fault pages are kept under a byte budget (`VICTORY_RT_FAULT_MB`, 1024). They are refreshed through the normal write-watch path. The oldest go back first, but never pages the builder may still store to. Switch `VICTORY_RT_FAULT_KEEP`. Branch `tn1-rtfault2` on Machad3x/VIctory-nvidia. Results will follow here.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 03:37:40 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 03:35 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.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-28 03:35 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/688#issuecomment-7233200956) 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. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠Machad3x on GitHub · 2026-11-28 03:37 UTC · original

GPU: RTX 3080 Ti 12 GB, driver 621.40. Windows 11 (build 26300). Built from source, diag profile. Not a crash: the session stays alive for the whole 240 s run, so there is no crashes.log for it. The full play logs contain local paths, so these are the relevant lines with paths removed. More lines on request.

WARN victory_gpu::memory: title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped); those that are the title's are there now frame=15153 pages=760 made=0 held=25495
WARN victory_gpu::memory: ... frame=15253 pages=375 made=0 held=25505
INFO victory_gpu::memory: title memory by address: 25505 pages (1594 MB) in 28 arenas, 86 copies in all; per frame 16 dispatches that read, 343 that build, 607.5 pages that had no copy, 2.2 pages turned down, 1.0 results brought back; 2517 pages looked at, 25.3 KB changed, 2.49 ms; 20 windows

These lines come from about 4 minutes into the run, long after the 2048 fault budget is spent.

**@⁠Machad3x** on GitHub · 2026-11-28 03:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/688#issuecomment-7233232311) GPU: RTX 3080 Ti 12 GB, driver 621.40. Windows 11 (build 26300). Built from source, diag profile. Not a crash: the session stays alive for the whole 240 s run, so there is no crashes.log for it. The full play logs contain local paths, so these are the relevant lines with paths removed. More lines on request. ``` WARN victory_gpu::memory: title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped); those that are the title's are there now frame=15153 pages=760 made=0 held=25495 WARN victory_gpu::memory: ... frame=15253 pages=375 made=0 held=25505 INFO victory_gpu::memory: title memory by address: 25505 pages (1594 MB) in 28 arenas, 86 copies in all; per frame 16 dispatches that read, 343 that build, 607.5 pages that had no copy, 2.2 pages turned down, 1.0 results brought back; 2517 pages looked at, 25.3 KB changed, 2.49 ms; 20 windows ``` These lines come from about 4 minutes into the run, long after the 2048 fault budget is spent.
Author
Owner

@⁠tharun-37 on GitHub · 2026-11-28 04:19 UTC · original

claiming: #688 — I’ll fix the faulted-page budget/lifecycle with a focused switch and tests, then open a PR.

AI-assisted (OpenCode).

**@⁠tharun-37** on GitHub · 2026-11-28 04:19 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/688#issuecomment-7233934154) claiming: #688 — I’ll fix the faulted-page budget/lifecycle with a focused switch and tests, then open a PR. AI-assisted (OpenCode).
Author
Owner

@⁠tharun-37 on GitHub · 2026-11-28 04:28 UTC · original

done: claim 7233934154 -> #722

AI-assisted (OpenCode).

**@⁠tharun-37** on GitHub · 2026-11-28 04:28 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/688#issuecomment-7234067112) done: claim 7233934154 -> #722 AI-assisted (OpenCode).
Author
Owner

@⁠CuteBooty on GitHub · 2026-11-28 05:33 UTC · original

The same symptom on an 8 GB card, in case another data point helps #722.

  • RTX 3070 8 GB (driver 621.24), Ryzen 7 5800X3D, 32 GB, Windows 11. Series S, 1920x1080, DLSS performance + frame generation 2x, victory.exe run, main 63b902fe1 plus #630 and #697, VICTORY_BVH_BUILDER=1. One session of 11 minutes.
  • The warning "shaders touched pages that had no copy (those accesses read 0 or were dropped)" came 107 times.
  • In the "title memory by address" line, "pages that had no copy" per frame went from about 22 to about 220 over eight minutes, and to 740 in the last seconds. Over the same time the arenas grew from 5 to 15.
  • One line as logged, near the end:
title memory by address: 13861 pages (866 MB) in 15 arenas, 56 copies in all; per frame 46 dispatches that read, 240 that build, 740.1 pages that had no copy, 5.3 pages turned down, 0.9 results brought back

The card-memory side of the same session (the arenas growing, the frame rate falling in the last two minutes) is on #691. I have not tested #722.

Measurements and this report were prepared with an AI assistant (Claude Code); the run was played on my machine.

**@⁠CuteBooty** on GitHub · 2026-11-28 05:33 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/688#issuecomment-7234744926) The same symptom on an 8 GB card, in case another data point helps #722. - RTX 3070 8 GB (driver 621.24), Ryzen 7 5800X3D, 32 GB, Windows 11. Series S, 1920x1080, DLSS performance + frame generation 2x, `victory.exe run`, main `63b902fe1` plus #630 and #697, `VICTORY_BVH_BUILDER=1`. One session of 11 minutes. - The warning "shaders touched pages that had no copy (those accesses read 0 or were dropped)" came 107 times. - In the "title memory by address" line, "pages that had no copy" per frame went from about 22 to about 220 over eight minutes, and to 740 in the last seconds. Over the same time the arenas grew from 5 to 15. - One line as logged, near the end: ``` title memory by address: 13861 pages (866 MB) in 15 arenas, 56 copies in all; per frame 46 dispatches that read, 240 that build, 740.1 pages that had no copy, 5.3 pages turned down, 0.9 results brought back ``` The card-memory side of the same session (the arenas growing, the frame rate falling in the last two minutes) is on #691. I have not tested #722. Measurements and this report were prepared with an AI assistant (Claude Code); the run was played on my machine.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#688
No description provided.