Large sampled textures without their top mip, for 16 GB Macs (a piece of #8) #347
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 Hayyan612 on 2026-11-27T13:29:30Z.
On 16 GB Macs the world load runs out of GPU memory (#8). #301 bounds how many host texture copies are kept; its notes name "fewer top mips" (#79) as another lever. This takes that lever: make each large copy smaller.
Plan. An opt-in
VICTORY_TEXTURE_DROP_TOP_MIP=1(off by default): a sampled-only 2D or array texture whose larger side is at least 1024 texels, with a level below its top, is made on the host without its top level (half the width and height, one level fewer: about 75% of that texture's memory).detileskips the top level and the views' mip ranges are mapped onto the host texture. Render targets, UAV and 3D textures are left as they are.Trade-off. Not console behaviour: up close those textures sample one level blurrier; integer loads and
GetDimensionssee the smaller texture. Hence opt-in.Status. Implemented with unit tests and a Metal test; not yet measured in a game run. Footprint numbers from a 16 GB tester, with and without the variable, would tell whether it is worth making a default there.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Hayyan612 on 2026-11-27T13:29:31Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T13:29:47Z.
Claimed by @Hayyan612. Open a draft pull request with
Refs #347in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T18:59:21Z.
The claim by @Hayyan612 has expired: no pull request referenced it within 24 hours. This issue is free to claim.