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:35:32 +00:00 by Machad3x · 5 comments
Machad3x commented 2026-11-28 03:35:32 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Machad3x on 2026-11-28T03:35:32Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6658626037 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/688). Originally posted by [Machad3x](https://github.com/Machad3x) on 2026-11-28T03:35:32Z. --- **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-actions[bot] commented 2026-11-28 03:35:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-28T03:35:40Z.


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)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7233200956 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/688#issuecomment-7233200956). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T03:35:40Z. --- 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)
Machad3x commented 2026-11-28 03:37:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Machad3x on 2026-11-28T03:37:56Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7233232311 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/688#issuecomment-7233232311). Originally posted by [Machad3x](https://github.com/Machad3x) on 2026-11-28T03:37:56Z. --- 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.
tharun-37 commented 2026-11-28 04:19:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tharun-37 on 2026-11-28T04:19:57Z.


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

AI-assisted (OpenCode).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7233934154 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/688#issuecomment-7233934154). Originally posted by [tharun-37](https://github.com/tharun-37) on 2026-11-28T04:19:57Z. --- 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 commented 2026-11-28 04:28:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tharun-37 on 2026-11-28T04:28:59Z.


done: claim 7233934154 -> #722

AI-assisted (OpenCode).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7234067112 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/688#issuecomment-7234067112). Originally posted by [tharun-37](https://github.com/tharun-37) on 2026-11-28T04:28:59Z. --- done: claim 7233934154 -> #722 AI-assisted (OpenCode).
CuteBooty commented 2026-11-28 05:33:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CuteBooty on 2026-11-28T05:33:42Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7234744926 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/688#issuecomment-7234744926). Originally posted by [CuteBooty](https://github.com/CuteBooty) on 2026-11-28T05:33:42Z. --- 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.
Sign in to join this conversation.
No labels
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.

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