Large sampled textures without their top mip, for 16 GB Macs (a piece of #8) #347

Open
opened 2026-11-27 13:29:30 +00:00 by Hayyan612 · 3 comments
Hayyan612 commented 2026-11-27 13:29:30 +00:00 (Migrated from github.com)
Contributor

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). detile skips 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 GetDimensions see 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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6647412162 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/347). Originally posted by [Hayyan612](https://github.com/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). `detile` skips 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 `GetDimensions` see 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.
Hayyan612 commented 2026-11-27 13:29:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Hayyan612 on 2026-11-27T13:29:31Z.


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7219542136 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/347#issuecomment-7219542136). Originally posted by [Hayyan612](https://github.com/Hayyan612) on 2026-11-27T13:29:31Z. --- /claim
github-actions[bot] commented 2026-11-27 13:29:47 +00:00 (Migrated from github.com)
Author
Contributor

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 #347 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7219547220 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/347#issuecomment-7219547220). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T13:29:47Z. --- Claimed by @Hayyan612. Open a draft pull request with `Refs #347` in its description within 24 hours, or the claim expires.
github-actions[bot] commented 2026-11-28 18:59:21 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7244204219 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/347#issuecomment-7244204219). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) 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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS#347
No description provided.