Repository navigation
Conversation
Build automatic opt-in top-mip budget eviction (XCL_TEXTURE_BUDGET_EVICT=1) on top of the Workstream 5 SRV-lease and tile-class foundation: - Track last-touch timestamp and min_resident_mip per placed sampled 2D texture, and keep pinned aliases from mixing with future evictable heap packing. - When DXGI local VRAM usage reaches XCL_TEXTURE_BUDGET_PCT (default 85%, or XCL_TEXTURE_BUDGET_MB override), select coldest evictable heaps first, re-clamp all tracked SRVs atomically under with_exact_tracked_srv_mutations (failing closed if any descriptor generation or raw word changed), update resident mip clamps before unmapping, and release top-mip tiles for cooling and 64 MiB heap reclamation. - Also clamp new/copied SRVs on creation via resident_min_mip and log cumulative evictions in XCL_ACTIVITY=1. Part of xcl-dev#2688 Assisted-by: Antigravity (Gemini 4 Neon)
|
I found a candidate-selection starvation case on head For a 64-tile target, heap A had 64 mapped tiles and no tracked SRV; heap B had 128 mapped tiles and a tracked SRV. The picker chose A, after which the tracked set for the selection was empty and the pass returned before unmapping. A second identical tick chose A again, leaving B untouched. Removing A selected B; marking both resources tracked preserved the intended preference for A. Filtering the raw candidates against a snapshot of tracked resources before selection could avoid this starvation, while retaining the final quiescence and descriptor-generation revalidation. This is selection/control-flow evidence; I did not run actual GPU eviction, prove retail incidence, or measure reclamation. AI use: OpenAI Codex with GPT-6.2 Astra built and ran the controls; Codex reviewed and prepared this report. |
|
I checked a distinct SRV-range boundary on RTX 5070 / NVIDIA 616.92 at head
Mip 1 remained resident in all cases, but it is outside the top-only view. The production The fixture exercised the actual clamp helper, tile unmap, fence, and native sampling; candidate selection was source-reviewed rather than exercised end to end. No driver pressure, retail title, image-quality frequency, or performance was measured. AI use: OpenAI Codex with GPT-6.2 Astra built and ran the fixture; Codex reviewed and prepared this report. |
|
AMD run on an RX 9070 XT (with an RTX 3060 in the same PC): the three new tests pass, and nothing else in Tested: at the PR head
Not tested: the whole suite, a title, AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
|
Tested Exact I ran
2 passed, 0 failed, 0 ignored, 0 runtime skips. Both native processes exited 0. Not tested GPU or device behavior, sampling, runtime eviction, allocator pressure, performance, retail titles, the base revision, and the full suite. AI use T3 Code through the Codex harness ( |
|
Full workspace suite on NVIDIA (listed under Not tested): no new failure. The 9 that fail are the ones current Tested:
Not tested: AI use: Claude Code (Claude Opus 5.5) ran the tests and the scratch mutations and wrote this report. |
|
Test report for Default ( That's 97 % of
At 86.7 s the residency line says Edit, a run that checks that: the same head with one local change, ( Edit, @thehollowedone's candidate (comment patch on
So the candidate fixes the stranding this report was about, and eviction on doesn't add RAM growth of its own here. RTX 3060 12 GB (driver 581.80), i9-14900KF, 64 GB RAM, Windows 11 26200. Not tested: the whole suite, AMD, a run longer than 300 s. AI use: Claude Code (Claude Opus 5.5) ran the builds and tests, applied the candidate patch, read the logs and wrote this report. |
|
Follow-up to the RTX 3060 memory-growth report, checked against head The reported A new allocator regression failed under the original relabeling behavior (0 passed, 1 failed) and passed with the candidate (1 passed, 0 failed). On the corrected candidate, This covers the free-tile stranding mechanism. The candidate has not had a retail active-eviction run or paired smoke, and the top-only SRV range finding also remains to be resolved before merge. Candidate diff and regressiondiff --git a/crates/xcl/src/hle/d3d12x/vram.rs b/crates/xcl/src/hle/d3d12x/vram.rs
index 6e4b19ac..9fb445e3 100644
--- a/crates/xcl/src/hle/d3d12x/vram.rs
+++ b/crates/xcl/src/hle/d3d12x/vram.rs
@@ -1215,6 +1215,8 @@ struct TilePool {
/// Fresh-allocation packing class for heap `h`. Shared address pages may give either class
/// live owners here, so this is never proof that a heap is safe to evict.
heap_evictable: Vec<bool>,
+ /// A pinned allocation has occupied this heap since it was last empty.
+ heap_has_pinned: Vec<bool>,
/// Total free tiles currently available across all heaps.
free_total: usize,
/// Tiles given back, reusable after `COOL`.
@@ -1227,6 +1229,7 @@ impl TilePool {
free_by_heap: Vec::new(),
dirty_sort: Vec::new(),
heap_evictable: Vec::new(),
+ heap_has_pinned: Vec::new(),
free_total: 0,
cooling: std::collections::VecDeque::new(),
}
@@ -1238,11 +1241,13 @@ impl TilePool {
self.free_by_heap.resize_with(idx + 1, Vec::new);
self.dirty_sort.resize(idx + 1, false);
self.heap_evictable.resize(idx + 1, false);
+ self.heap_has_pinned.resize(idx + 1, false);
}
debug_assert!(self.free_by_heap[idx].is_empty());
self.free_by_heap[idx] = (0..pool_pages).rev().collect();
self.dirty_sort[idx] = false;
self.heap_evictable[idx] = evictable;
+ self.heap_has_pinned[idx] = !evictable;
self.free_total += pool_pages as usize;
}
@@ -1266,6 +1271,7 @@ impl TilePool {
self.free_by_heap[h].shrink_to_fit();
self.dirty_sort[h] = false;
self.heap_evictable[h] = false;
+ self.heap_has_pinned[h] = false;
self.free_total -= full;
reclaimed.push(h as u32);
}
@@ -1374,6 +1380,10 @@ impl TilePool {
self.dirty_sort[h] = false;
}
let free = &mut self.free_by_heap[h];
+ if free.len() == pool_pages as usize {
+ // No prior owner remains in a fully cooled heap.
+ self.heap_has_pinned[h] = !evictable;
+ }
let take = rem.min(free.len());
for _ in 0..take {
let t = free.pop().unwrap();
@@ -1385,8 +1395,8 @@ impl TilePool {
}
fn mark_heap_pinned(&mut self, slot: u32) {
- if let Some(flag) = self.heap_evictable.get_mut(slot as usize) {
- *flag = false;
+ if let Some(flag) = self.heap_has_pinned.get_mut(slot as usize) {
+ *flag = true;
}
}
}
@@ -2707,7 +2717,8 @@ unsafe fn evict_under_budget(dev: &ID3D12Device, dev_key: usize, now: std::time:
let Some(lv) = t.levels.as_ref() else { continue };
let Some((tiles, tail_mip)) = lv.evictable_chain() else { continue };
let Some(heap) = evictable_heap(pages, lv) else { continue };
- let heap_evictable = pages.pool.heap_evictable.get(heap as usize).copied().unwrap_or(false);
+ let heap_evictable = pages.pool.heap_evictable.get(heap as usize).copied().unwrap_or(false)
+ && !pages.pool.heap_has_pinned.get(heap as usize).copied().unwrap_or(true);
let heap_free = pages.pool.free_by_heap.get(heap as usize).map_or(0, |v| v.len() as u32);
raw_cands.push(HeapEvictCandidate {
res_key,
@@ -4328,6 +4339,36 @@ mod tests {
assert_ne!(evictable[0].0, pinned[0].0, "allocation classes must not share a pool heap");
}
+ #[test]
+ fn pinned_alias_does_not_strand_free_tiles_in_evictable_heap() {
+ const P: u32 = 64;
+ let now = Instant::now();
+ let mut pool = TilePool::new();
+ let next_slot = std::cell::Cell::new(0u32);
+ let mut alloc_slot = || {
+ let slot = next_slot.get();
+ next_slot.set(slot + 1);
+ Some(slot)
+ };
+
+ let first = pool.take_batch(1, None, true, now, P, &mut alloc_slot).unwrap();
+ let heap = first[0].0;
+ pool.mark_heap_pinned(heap); // a non-evictable placement shares the existing page
+ let pinned = pool.take_batch(1, None, false, now, P, &mut alloc_slot).unwrap();
+ assert_ne!(pinned[0].0, heap, "new pinned tiles still use a separate heap");
+ let rest = pool.take_batch(P as usize - 1, None, true, now, P, &mut alloc_slot).unwrap();
+ assert!(rest.iter().all(|&(h, _)| h == heap));
+ assert_eq!(next_slot.get(), 2, "a pinned alias must not strand the heap's free tiles");
+ assert!(pool.heap_evictable[heap as usize]);
+ assert!(pool.heap_has_pinned[heap as usize]);
+
+ pool.return_tiles(&first);
+ pool.return_tiles(&rest);
+ let reused = pool.take_batch(1, None, true, now, P, &mut alloc_slot).unwrap();
+ assert_eq!(reused[0].0, heap);
+ assert!(!pool.heap_has_pinned[heap as usize], "a fully free warm heap loses the old pin");
+ }
+
#[test]
fn tile_pool_keeps_one_warm_spare_for_each_allocation_class() {
const P: u32 = 64;AI use: Codex (GPT-6.2 Sol) traced the allocator, wrote and ran the candidate regression, and checked the diff; Codex (GPT-6.2 Astra) independently reviewed ownership and warm-heap reuse. This is a separate candidate guard, not a complete resolution of the top-only SRV issue. Descriptor changes and tile mappings still need their existing lifetime checks; I did not run an active retail eviction test for this update. Tail-residency regression and candidate guarddiff --git a/crates/xcl/src/hle/d3d12x/vram.rs b/crates/xcl/src/hle/d3d12x/vram.rs
index 6e4b19ac..ab93827a 100644
--- a/crates/xcl/src/hle/d3d12x/vram.rs
+++ b/crates/xcl/src/hle/d3d12x/vram.rs
@@ -885,6 +885,9 @@ impl Levels {
/// Total tiles and packed-tail start mip if at least one evictable top group is mapped.
fn evictable_chain(&self) -> Option<(u32, u32)> {
let last = self.groups.len().checked_sub(1)?;
+ if !self.groups[last].3 {
+ return None;
+ }
let mut tiles = 0u32;
for g in &self.groups[..last] {
if g.3 {
@@ -4145,6 +4148,15 @@ mod tests {
assert_eq!(levels.group_tiles, expected, "cancelling a deferred unmap restores every group owner");
}
+ #[test]
+ fn top_mips_are_not_evictable_until_the_tail_is_mapped() {
+ let mut levels = Levels::new(&[(0, 1)], Some((1, 1)), 2, 2).unwrap();
+ levels.groups[0].3 = true;
+ assert_eq!(levels.evictable_chain(), None);
+ levels.groups[1].3 = true;
+ assert_eq!(levels.evictable_chain(), Some((1, 1)));
+ }
+
#[test]
fn resource_release_takes_every_level_group_owner() {
let mut levels = Levels::new(&[(0, 1), (1, 1)], Some((2, 1)), 3, 4).unwrap();AI use for this update: Codex (GPT-6.2 Sol) traced, wrote, and ran the focused test; Codex (GPT-6.2 Astra) reviewed the lazy-map and descriptor paths. |
|
One remaining correctness boundary for head Eviction unmaps and releases the top-level tiles. A later CreateShaderResourceView raises To preserve the resource's contents, eviction eligibility needs a guarantee that each discarded subresource can be restored before any later use requiring it, or a lifetime guarantee ruling that use out. A restore path would need authoritative versioned contents, mapping and upload even under continued pressure, and a queue wait before the first dependent submission. Until such a path exists for a resource, keeping its top mips resident is the correctness-preserving option. A live-view range guard still addresses views already present, but does not establish this future-use guarantee. Suggested regression: upload red mip 0 and green mip 1, overwrite mip 0 with blue through a GPU copy, run the production eviction with only a broad SRV live, then create a mip-0-only SRV under sustained pressure. The sample must still be blue; if that source is not restorable, assert that eviction left mip 0 mapped. This is a source-path finding and a test design; I have not run that late-view GPU regression. AI use: Codex (GPT-6.2 Sol) traced the source and checked the conclusion; Codex (GPT-6.2 Astra) independently reviewed the SRV and texture-lifetime paths. |
|
I tested a narrow candidate for the top-only SRV finding on head With a 64-tile request, the existing picker initially preferred heap A (64 tiles). With both those views on A, the candidate picked heap B (128 eligible tiles). Removing A’s top-only view restored the preference for A. A zero-tile request selected neither. This uses synthetic candidate metadata and the production selection helpers. Native RTX 5070, NVIDIA 616.92, two-mip reserved texture. The fixture exercised the new range predicate, native SRV rewrite, tile unmap when eligible, fence, and shader readback:
The focused VRAM module run with the fixture overlay completed 66 passed, 0 failed, 1 ignored (opt-in tile-mapping timing test). The native fixture made the eviction decision directly with the predicate. DXGI pressure and the full production eviction tick were outside this test. This addresses the live-view and heap-selection cases. The later-created view finding still applies: a view may be created after eviction and require content previously written by the GPU. I would keep the opt-in restriction and treat a mapped tail and reliable restoration or lifetime guarantees as separate prerequisites before enabling this generally. The candidate is attached here for the author to use independently of the allocator changes. Candidate and selection regression against 60f1a22--- a/crates/xcl/src/hle/d3d12x/vram.rs
+++ b/crates/xcl/src/hle/d3d12x/vram.rs
@@ -1054,6 +1054,11 @@
};
let start = most_detailed.max(clamp_mip).min(end);
start..end
+}
+
+fn view_reaches_resident_mips(mips: u32, tail: u32, desc: Option<&D3D12_SHADER_RESOURCE_VIEW_DESC>) -> bool {
+ let range = srv_mip_range(mips, desc);
+ range.start.max(tail) < range.end
}
fn srv_slice_range(res_slices: u32, dim: i32, desc: Option<&D3D12_SHADER_RESOURCE_VIEW_DESC>) -> std::ops::Range<u32> {
@@ -2686,6 +2691,21 @@
None
}
+fn retain_visible_candidates(
+ raw_cands: &mut Vec<HeapEvictCandidate>,
+ tail_by_res: &HashMap<usize, (u32, u32)>,
+ tracked: &TrackedSrvs,
+ dev_key: usize,
+) {
+ let mut eligible = std::collections::HashMap::<usize, bool>::new();
+ for entry in tracked.by_slot.values().filter(|entry| entry.device == dev_key) {
+ let Some(&(tail, mips)) = tail_by_res.get(&entry.resource) else { continue };
+ let allowed = view_reaches_resident_mips(mips, tail, entry.desc.as_ref());
+ *eligible.entry(entry.resource).or_insert(true) &= allowed;
+ }
+ raw_cands.retain(|c| eligible.get(&c.res_key) == Some(&true));
+}
+
unsafe fn evict_under_budget(dev: &ID3D12Device, dev_key: usize, now: std::time::Instant) {
let Some((usage, budget)) = local_vram_usage_and_budget(dev) else { return };
let pct = budget_evict_pct();
@@ -2696,7 +2716,7 @@
let want_bytes = usage.saturating_sub(budget.saturating_mul(low_pct) / 100);
let target_tiles = (want_bytes / PAGE as u64).clamp(64, 8192);
let mut raw_cands: Vec<HeapEvictCandidate> = Vec::new();
- let mut tail_by_res: std::collections::HashMap<usize, u32> = std::collections::HashMap::new();
+ let mut tail_by_res: std::collections::HashMap<usize, (u32, u32)> = std::collections::HashMap::new();
{
let g = PAGES.lock().unwrap();
let Some(Some(pages)) = g.get(&dev_key) else { return };
@@ -2717,11 +2737,17 @@
last_touch: t.last_touch,
tiles,
});
- tail_by_res.insert(res_key, tail_mip);
+ tail_by_res.insert(res_key, (tail_mip, lv.mips));
}
}
if raw_cands.is_empty() {
return;
+ }
+ // Filter before ranking so a resource with an unusable view cannot consume the tile target.
+ {
+ let g = TRACKED_SRVS.lock().unwrap();
+ let Some(tracked) = g.as_ref() else { return };
+ retain_visible_candidates(&mut raw_cands, &tail_by_res, tracked, dev_key);
}
let chosen = pick_evict_candidates_by_heap(&raw_cands, target_tiles);
if chosen.is_empty() {
@@ -2754,8 +2780,10 @@
let mut all_clampable: std::collections::HashMap<usize, bool> = std::collections::HashMap::new();
for m in mutations {
*surviving.entry(m.entry.resource).or_insert(0) += 1;
- let clampable = tail_by_res.contains_key(&m.entry.resource)
- && m.entry.desc.or_else(|| default_srv_desc(&m.resource.GetDesc())).is_some();
+ let desc = m.entry.desc.or_else(|| default_srv_desc(&m.resource.GetDesc()));
+ let clampable = tail_by_res.get(&m.entry.resource).is_some_and(|&(tail, mips)| {
+ desc.as_ref().is_some_and(|d| view_reaches_resident_mips(mips, tail, Some(d)))
+ });
all_clampable
.entry(m.entry.resource)
.and_modify(|ok| *ok &= clampable)
@@ -2770,7 +2798,7 @@
if surviving.get(&res_key).copied() != live_counts.get(&res_key).copied() {
continue;
}
- let Some(&tail_mip) = tail_by_res.get(&res_key) else { continue };
+ let Some(&(tail_mip, _)) = tail_by_res.get(&res_key) else { continue };
let Some(mut d) = m.entry.desc.or_else(|| default_srv_desc(&m.resource.GetDesc())) else { continue };
clamp_srv_min_lod(&mut d, tail_mip);
super::real::native_create_srv(m.heap.device(), m.resource, &d, m.heap.pc_srv);
@@ -5278,6 +5306,41 @@
}
#[test]
+ fn top_only_view_does_not_starve_another_heap_under_eviction_pressure() {
+ let mut tracked = TrackedSrvs::default();
+ let mut broad = tracked_entry(1, 0x10);
+ broad.desc = None;
+ tracked.write(srv_slot(1, 0), Some(broad));
+ let mut top = tracked_entry(1, 0x20);
+ top.desc = Some(D3D12_SHADER_RESOURCE_VIEW_DESC {
+ ViewDimension: D3D12_SRV_DIMENSION_TEXTURE2D,
+ Anonymous: D3D12_SHADER_RESOURCE_VIEW_DESC_0 {
+ Texture2D: D3D12_TEX2D_SRV { MipLevels: 1, ..Default::default() },
+ },
+ ..Default::default()
+ });
+ tracked.write(srv_slot(1, 1), Some(top));
+ let mut other = tracked_entry(2, 0x30);
+ other.desc = None;
+ tracked.write(srv_slot(2, 0), Some(other));
+ let now = Instant::now();
+ let candidates = vec![
+ HeapEvictCandidate { res_key: 1, heap: 1, heap_evictable: true, heap_free: 960, last_touch: now, tiles: 64 },
+ HeapEvictCandidate { res_key: 2, heap: 2, heap_evictable: true, heap_free: 896, last_touch: now, tiles: 128 },
+ ];
+ let tails = HashMap::from([(1, (1, 2)), (2, (1, 2))]);
+ assert_eq!(pick_evict_candidates_by_heap(&candidates, 64), [1]);
+ let mut eligible = candidates.clone();
+ retain_visible_candidates(&mut eligible, &tails, &tracked, 7);
+ assert_eq!(pick_evict_candidates_by_heap(&eligible, 64), [2]);
+ tracked.write(srv_slot(1, 1), None);
+ let mut eligible = candidates;
+ retain_visible_candidates(&mut eligible, &tails, &tracked, 7);
+ assert_eq!(pick_evict_candidates_by_heap(&eligible, 64), [1]);
+ assert!(pick_evict_candidates_by_heap(&eligible, 0).is_empty());
+ }
+
+ #[test]
fn heap_draining_eviction_empties_coldest_heaps_first_and_skips_pinned() {
let t0 = Instant::now();
let cands = vec![AI use: OpenAI Codex prepared the candidate, ran the selection and native readback controls, and wrote this report. |
bmjask
left a comment
There was a problem hiding this comment.
map_levels can restore an evicted top mip and lower Target.min_resident_mip, but existing live SRV descriptors remain clamped to the packed tail. Eviction rewrites them using clamp_srv_min_lod, which only raises ResourceMinLODClamp; the remapping path at lines 3128-3175 never rewrites those descriptors with a lower clamp. Sampling through an SRV created before eviction can therefore remain permanently restricted to lower-resolution mips after mip 0 is resident again.
Please make descriptor clamp state reversible when residency is restored, while preserving an application-specified original clamp. Add a GPU regression that creates an SRV, evicts mip 0, remaps mip 0 after budget recovery, and verifies that the same SRV samples mip 0 again.
Reviewed at 60f1a22 with Codex (GPT-5).
|
main has only the SRV-tracking groundwork for AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
Review (head 60f1a22, diff read, not a merge-check; conflicts with main in
Fine: off by default, and the default path matched main in both smokes. Render targets and UAVs are excluded ( AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
Implements opt-in automatic top-mip VRAM budget eviction (
XCL_TEXTURE_BUDGET_EVICT=1) on top of the Workstream 5 SRV-tracking and tile-class foundation already inmain. Default behavior withXCL_TEXTURE_BUDGET_EVICTunset is unchanged.Part of #2688
What is in it
crates/xcl/src/hle/d3d12x/console_heap.rs: exposeViewSlotLease::device(&self) -> &ID3D12Device.crates/xcl/src/hle/d3d12x/real.rs: add unhookednative_create_srvandnative_copy_descriptors_simplehelpers for quiescent SRV descriptor clamping, applyresident_min_mipclamp on new SRV creation indev_create_srv_x, and updatenote_srvlast-touch tracking whensrv_tracking_enabled().crates/xcl/src/hle/d3d12x/vram.rs:XCL_TEXTURE_BUDGET_PCT(default85, clamped50..=98),XCL_TEXTURE_BUDGET_MBoverride,Levels::evictable_chain,TilePool::mark_heap_pinned,Pages::unmap_range,clamp_srv_min_lod,default_srv_desc,resident_min_mip, heap-draining candidate selection (pick_evict_candidates_by_heap), and quiescentevict_under_budgetexecuted periodically inbefore_executeusingwith_exact_tracked_srv_mutations(failing closed if any descriptor generation or raw word changed or gained an untracked SRV before mutation).Target::last_touchandTarget::min_resident_mip, isolate evictable top mips from packed tails and pinned aliases, updateresident_texelsandEVICT_STATS(TexelStats::evicted_mips/evicted_tiles), and add unit + GPU verification tests (clamp_srv_min_lod_raises_clamp_without_lowering_existing,heap_draining_eviction_empties_coldest_heaps_first_and_skips_pinned,gpu_unmap_top_mip_with_srv_min_lod_clamp_samples_resident_mip).crates/xcl/src/host.rs: append; evicted {} mips ({} MB)toXCL_ACTIVITY=1texture residency:logging when evictions occur.Tested
32.0.15.9579), AMD Ryzen 7 9700X, Windows 11 Pro10.0.26100,rustc 1.100.0 (0ef1bc386 2026-11-09).cargo test -p xcl --lib vram::tests -- --nocapture --test-threads=1: 65 passed, 0 failed, 1 ignored (churn_update_tile_mappings_timing), 0 skipped.cargo test -p xcl --lib console_heap::tests -- --nocapture --test-threads=1: 15 passed, 0 failed, 0 ignored, 0 skipped.cargo build --release -p xcl: clean build with 0 new warnings (26 pre-existing warnings onmain).title: 9cc6a39e, run withXCL_PREPARE=0per8617577b,XCL_TEXTURE_*unset):60f1a222matchedmaine429936ccleanly (944vs895frames shown,13703vs13711MB peak commit,0crashes,0device removals).XCL_PREPARE=0 XCL_TEXTURE_BUDGET_EVICT=1 XCL_TEXTURE_BUDGET_MB=4096):exit: 0x0,923frames shown (PresentX 923),13773MB peak commit,0crashes,0device removals; loggedD3D12.X: texture budget eviction: evicted 71 mip groups (22 MB) at 6046 / 4096 MB local VRAMandtexture residency: 514 sampled (508 with SRV); texels 275.0M resident / 314.0M srv-sampled / 314.0M virtual (87% resident); evicted 71 mips (22 MB).Regression run
Not tested
cargo test --workspaceat60f1a222(onlyvram::testsandconsole_heap::testsran after final edits;benches/runtime.rson basemaine429936cfails to compile due to upstreamConfig.input_profilevisibility).XCL_TEXTURE_BUDGET_EVICT=1to confirm multi-heap reclamation after 2 s cooling during longer sessions.AI use
main's SRV-lease primitives, resolved test/lock ordering issues, ran tests, release build, and smokes (default andXCL_TEXTURE_BUDGET_EVICT=1), and drafted this description with Antigravity (Gemini 4 Neon).