Write InitHeaders' stores into title memory from a record of them (0.5 → 2.2 fps on RX 7900 XTX) #153
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/153"
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 DexNom/VIctory. Originally posted by SyberMaik on 2026-11-28T13:15:33Z.
What
InitHeaders takes its destinations from a table in title memory, so nothing bound to it says where it stores. Until now, every visible raw-memory copy was declared written after each dispatch. With
--rt-write-statsit was the only broad raw writer left: 6–19 GB of write declarations per frame-rate sample in the opening, each declared range snapshotted, compared and copied back.The existing store trace (
--rt-store-trace) shows what InitHeaders really writes: at most 96 stores per dispatch, 1,408 bytes, in 16-byte pieces. Most of them land outside the acceleration-structure headers the host knows from live views, so no static declaration can cover them.This PR turns the store trace into the publication mechanism for InitHeaders:
Safeguards
VICTORY_RECORDED_WRITES=0restores the previous behaviour.Measured
Ryzen 7 5800X3D, 32 GB, RX 7900 XTX, Series X with ray tracing (
--rt --console series-x --local-gpu-memory --sparse-textures --no-upload-ahead --capture-readbacks --rt-write-stats). Same save, same scene, 6 minutes each, median of about 45 frame-rate samples in the world:Over 1,000 InitHeaders dispatches were applied from their record with no overflow, no atomics warning and no crash. Builder, activation, traversal and resolve were on in both runs.
Not verified yet: a frame-by-frame visual comparison of the two runs. My capture run did not save frames. I would appreciate a check on your scene, or I can follow up with captures.
A second small commit makes the capture folder when it does not exist. Without that, every frame was logged "frame not saved" (os error 3).
Generated with Claude Code
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.