Watch: descriptor heap blocks open by 4 KiB part on a write fault, guard tells the parts (VICTORY_GUARD_PARTS) #1853
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-29T00:46:48Z.
Adds 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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eleboucher on 2026-11-29T07:36:04Z.
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.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.