Host footprint over the console budget: prove asked vs allocated and cut the biggest host-only over-allocation #639
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 LakshanSivakumar/Native-Victory-macOS. Originally posted by jamal-fv on 2026-11-28T20:50:08Z.
Symptom
On an M3 Max 36 GB,
footprintat the world baseline is 14 GB (peak 14 GB; 16 GB with change-signal / L3 dirty tracking). Series S console budget is ~10 GB total (~8 GB usable). WithVICTORY_CHANGE_PROPORTIONAL=1orVICTORY_PERSISTENT_DESC=1the run can die before the world withkIOGPUCommandBufferCallbackErrorOutOfMemory.Measured split (baseline, no flags):
Already proven (offline + existing run logs)
From
VICTORY_TRACE_TEXTURE_SYNC=1on a world run (wt-mainmain-next-000350):resource_heaps=3soHEAP_VIEWSpadding is only ~3×48 MiB (+ stride tables) — secondaryheap_set_mb≈16453,metal_mb≈15377,footprint_mb≈18918So the title asks for one set of texels in title memory; the host allocates a second detiled MTLTexture set, and overlapping placements keep more than one host copy of the same pages. Covered / VA-alias work is tracked under #8 / #428 — this issue is for proving asked-vs-allocated with counters and fixing host-only over-allocation that does not change what is drawn (heap sizing vs title
NumDescriptors, staging retention, etc.).Out of scope here
VICTORY_TEXTURE_DROP_TOP_MIPdefaults (#347) — changes sampling sharpnessDone when
VICTORY_*) show title-asked vs host-allocated for heaps and texture copiesfootprint/vmmap -summaryon the same headless world runImported from LakshanSivakumar/Native-Victory-macOS. Originally posted by jamal-fv on 2026-11-28T20:50:35Z.
/claim — asked-vs-allocated counters for heaps/texture copies; rendering-neutral over-allocation cut (heap sizing vs title NumDescriptors / staging retention); before/after footprint on the same headless world run. Refs #8 for the covered-copy work already claimed there.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T20:50:44Z.
Claimed by @jamal-fv. Open a draft pull request with
Refs #639in its description within 24 hours, or the claim expires.