Watch: descriptor heap blocks open by 4 KiB part on a write fault, guard tells the parts (VICTORY_GUARD_PARTS) #1853
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!1853
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1853"
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?
@101Leafy on GitHub · 2026-11-29 00:46 UTC · original
101Leafy:nv/guard-parts→main· +217 −6 · 2 files · 2 commits · openAdds VICTORY_GUARD_PARTS, 0 by default, so nothing changes unless it is set. With a value from 1 to 16, a write fault in a guarded block of the descriptor heaps opens only the 4 KiB part it hit, and the guard tells only the open parts as written, so the heap copy reads and compares those parts and not the whole block. Once that many parts of a block are open, the next fault opens the block whole as before. A block with other views also opens whole, because a write through another view would not fault at this one's parts.
On our side the switch was on at 4 parts. It is off here. With all of each opened block told as written, the heap copy looked at 399,360 descriptor slots a frame for about 57,000 changed, read 18.4 MB, and spent 9.7 ms reading and comparing and 17 ms asking. The title writes a few descriptors at a time.
The parts path stays off under VICTORY_FAULT_UNLOCKED, whose faults open whole blocks without the guards' lock and have no notes of parts. Diagnostics builds get five counters for part faults, whole opens, blocks with other views, and the blocks and parts closed again, and the counter array grows to 96. The test that opens a heap block by the part runs with 4 parts.
151defc9b7to8e6a7029288e6a702928to2e0968fea4@eleboucher on GitHub · 2026-11-29 07:36 UTC · original
PC result: RTX 4070 Ti SUPER 16 GB, Ryzen 7 9800X3D, 16 GB RAM, Windows 11, native 1440p,
VICTORY_BVH_BUILDER=1 VICTORY_ACTIVATE_RAYS=1, diagnostics build of main568c5e5dplus this PR and several others (one exe, one switch per run), 10-minute runs, medians after 200 s. Same exe without the switch: 24.3 fps (p10 23.5), preparing 30.6 ms.With
VICTORY_GUARD_PARTS=4: 25.2 fps (p10 23.9), preparing 29.8 ms. About +0.9 fps, near run-to-run noise here (~0.5 fps). No crash or picture problem seen.2e0968fea4to83bf00298eView 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.