Host footprint over the console budget: prove asked vs allocated and cut the biggest host-only over-allocation #643
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#643
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?
@jamal-fv on GitHub · 2026-11-28 20:50 UTC · original
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 / #432 — 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 (#349) — changes sampling sharpnessDone when
VICTORY_*) show title-asked vs host-allocated for heaps and texture copiesfootprint/vmmap -summaryon the same headless world run@jamal-fv on GitHub · 2026-11-28 20:50 UTC · original
/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.
@github-actions[bot] on GitHub · 2026-11-28 20:50 UTC · original
Claimed by @jamal-fv. Open a draft pull request with
Refs #639in its description within 24 hours, or the claim expires.