Fix descriptor heap lifetime and batch card-step heap upgrades #48
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/48"
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 edsuuu/VI-BR-PORT. Originally posted by nativ69 on 2026-11-30T01:18:18Z.
Problem
HeapRangeswas stored in a global cache keyed by the host heap's address. Destroying a descriptor heap did not remove its cached ranges, potentially retaining staleShadowreferences and allowing a replacement heap at the same address to inherit stale range state.Changes
HostHeap.Weak::upgradeoperations across consecutive slot fills targeting the same heap, reducing atomic reference-count contention while preserving execution order.VICTORY_HEAP_LIFETIME=1).Validation
Tested on Windows 11, Ryzen 7 5800X, RTX 4070 (12 GB), and 32 GB DDR4-3200, using the Xbox Series S configuration.
The gameplay tests were limited to the opening cafe sequence and prison scene. Extended gameplay stability and the isolated performance impact of batching have not been evaluated.