GPU: cache exact buffer span unions per heap #1413

Closed
spk-c wants to merge 5 commits from upstream-pr/1413 into main
spk-c commented 2026-11-26 23:55:27 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by spk-c on 2026-11-26T23:55:27Z.


AI-assisted selective adaptation of Kelvaroq 0055 via spk-c/victory-fork#41; source attribution in docs.

Opt-in VICTORY_DESCRIPTOR_BUFFER_SPANS=1 retains the exact enclosing range per backing buffer in the unmarked heap pass. The authoritative slot map, 16-pass revalidation cadence, dirty drain and existing refresh semantics remain unchanged. The index is discarded on inconsistency, full scans, marked-pass reset and heap destruction. The existing marked pass is unchanged. Two CPU oracle tests exercise mixed updates and duplicate endpoints.

This targets span aggregation rather than the descriptor mirroring, lock, and allocation changes of #1293/#1400. No gameplay improvement claimed. Original fork CI passed; direct upstream CI is pending.

Dependencies: existing #1372 (stable heap IDs and cache cleanup, original commit 9aac3495) and #1357 (test extraction, original commit 450ed9bd). Both are separate, attributed ancestors, not new feature changes. Asset-policy checks and size limit unchanged. When the original dependency commits are merged normally, their changes disappear from this diff.

<!-- greyfinch-sync:fxceless/victory-fork:issue:5518807336 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1413). Originally posted by [spk-c](https://github.com/spk-c) on 2026-11-26T23:55:27Z. --- AI-assisted selective adaptation of Kelvaroq 0055 via spk-c/victory-fork#41; source attribution in docs. Opt-in VICTORY_DESCRIPTOR_BUFFER_SPANS=1 retains the exact enclosing range per backing buffer in the unmarked heap pass. The authoritative slot map, 16-pass revalidation cadence, dirty drain and existing refresh semantics remain unchanged. The index is discarded on inconsistency, full scans, marked-pass reset and heap destruction. The existing marked pass is unchanged. Two CPU oracle tests exercise mixed updates and duplicate endpoints. This targets span aggregation rather than the descriptor mirroring, lock, and allocation changes of #1293/#1400. No gameplay improvement claimed. Original fork CI passed; direct upstream CI is pending. Dependencies: existing #1372 (stable heap IDs and cache cleanup, original commit 9aac3495) and #1357 (test extraction, original commit 450ed9bd). Both are separate, attributed ancestors, not new feature changes. Asset-policy checks and size limit unchanged. When the original dependency commits are merged normally, their changes disappear from this diff.
akimfomin commented 2026-11-27 00:14:50 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by akimfomin on 2026-11-27T00:14:50Z.


Your span cache combines cleanly with KyleS98's table-slot experiment at the current VIctory base. I used Git merge-tree with your head 900c15f5 and #1414 head 9a18dd08. It produced tree a38ce19426925cab2511eb6685c305103dba86b6. I also checked your head with #1411 at dee3f61a; the result was tree f36574568a84b3183368c4756c4d7f914887797d. Both are merge checks, with no behavioral or timing result.

If you compare both descriptor changes, keep the four switch combinations separate. Record the refreshed spans per backing buffer as well as frame time. That will show whether marking more table-owned slots reduces the work your cache is trying to aggregate. You can give a future public PR/target pair to your agent through PortBridge #98 and attach the exact result there for another fork. AI-assisted Git check.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7206299541 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1413#issuecomment-7206299541). Originally posted by [akimfomin](https://github.com/akimfomin) on 2026-11-27T00:14:50Z. --- Your span cache combines cleanly with KyleS98's table-slot experiment at the current VIctory base. I used Git merge-tree with your head `900c15f5` and #1414 head `9a18dd08`. It produced tree `a38ce19426925cab2511eb6685c305103dba86b6`. I also checked your head with #1411 at `dee3f61a`; the result was tree `f36574568a84b3183368c4756c4d7f914887797d`. Both are merge checks, with no behavioral or timing result. If you compare both descriptor changes, keep the four switch combinations separate. Record the refreshed spans per backing buffer as well as frame time. That will show whether marking more table-owned slots reduces the work your cache is trying to aggregate. You can give a future public PR/target pair to your agent through [PortBridge #98](https://github.com/akimfomin/PortBridge/issues/98) and attach the exact result there for another fork. AI-assisted Git check.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!1413
No description provided.