Shaders: report only missing title-memory pages #308
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!308
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-308"
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?
@gomeaw on GitHub · 2026-11-24 23:28 UTC · original
gomeaw:perf/shader-page-fault-writes→main· +21 −13 · 3 files · 1 commits · openSummary
Raw title-memory shaders write a page number into the fault UAV for every lookup. Resident pages and masked lanes write to dword 0, which the host never reads. With many threads traversing the same structures, these writes all target the same address.
Emit the fault store only when an executing lane finds an absent page. Keep the hash and slot for actual faults. Continue from the join before using the resolved view in raw memory instructions or reading a wide BVH node. There is no host binding or configuration change.
This addresses GPU work in the builder and traversal paths discussed in #284. The proposed dirty-page mask in that issue reduces host refresh and copy-back work. This patch also applies cleanly alongside the title-memory watermarks in #205 and both builder changes #156 and #294.
Validation
AI-assisted with Codex. All inputs were synthetic.
@HyperEndgame on GitHub · 2026-11-26 19:00 UTC · original
In-game numbers for this idea on real hardware. I measured my own implementation of the same change (the fault store guarded on
missing, with the block re-bound after the lookup), not this branch: it is based on an older main and conflicts with the ray-tracing stack I test on. So these numbers describe the technique, not this exact diff.Setup
085ee7c+ #854 + #993 + #994 (plus the structure view-address fix from my #994 comment) + #213 + #1147 + #1084. Diag build.VICTORY_BVH_BUILDER=1, probe off,VICTORY_CARD_METER_PIPELINES=1. Scripted input, 8-minute runs, the same opening scene.Card time per binding, before → after
f22a76fcb967ee59)6d7fe7745ab9c6d8)5062bc7a48e842f8)c42a31951201f9a0)5279ae36796c31fc)VICTORY_RAY_PROBE=1check run).A pitfall worth checking here
In my first version, the scalar path (
memory_smem) kept the block handle from before the lookup. Once the lookup split the block, translation panicked with "forward reference outside a phi" on the builder programs (16 panics offline over the builder DLL), and the unit tests didn't catch it. This branch does re-bindcinmemory_smem, so it looks fine. Atranslate --list --validateover the builder DLL is a cheap way to confirm it after the rebase.Not tested
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.