GPU: heap buffer pass looks only at marked slots; time split and visi… #523
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/523"
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 fxceless/victory-fork. Originally posted by pug205gti6 on 2026-11-25T01:58:50Z.
…t counts in the fps line
The pass for shaders that pick buffers by index looked again at every buffer view of the heap (81,000 in the world) every 16 passes and rebuilt every copy's span from all views every pass. Now (heap_pass.rs) a slot is looked at again when its view was written, its view table entry was freed (descriptor::forget, which leaves the record as it was), its record in title memory differs from the one last seen (a 12-byte compare), or it found no host copy (every 16 passes); all slots every 256 passes as a safety net. A copy's span is worked out again only when one of its slots went. VICTORY_HEAP_PASS_FULL=1 brings back the old pass for A/B.
The fps line now splits the pass's time: slots looked at, copies refreshed, and the texture side (heap_textures, bounded at 250 ms a pass), with the slots and copies per frame and the mode (marked/full).
(cherry picked from commit
5a3dfa42d8)upstream-sync referenced this pull request2026-11-25 08:08:49 +00:00
Imported from fxceless/victory-fork. Originally posted by Revens2 on 2026-11-25T07:36:45Z.
Duplicate of #467: @LeonardoS11 opened this patch 41 minutes earlier, and
gh pr diffreturns the same bytes for both (+491/-32 on 5 file(s), same title).Please continue in #467 so the review history and any test data stay in one place.
Thanks.
Imported from fxceless/victory-fork. Originally posted by Headache3318 on 2026-11-25T08:12:59Z.
Independent verification: PR #523 merges cleanly onto main (
310c6eb), adds heap_pass.rs (377 lines) for optimized GPU heap buffer tracking. Build: success (8s). Tests: victory crate passed (1/1); full workspace test timed out at 600s due to Wine environment on Linux running .exe test binaries slowly — tests compiled and ran with no failures in the time they completed. Timeout is environmental, not a code regression. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.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.