Large sampled textures without their top mip, for 16 GB Macs (a piece of #8) #349
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#349
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?
@Hayyan612 on GitHub · 2026-11-27 13:29 UTC · original
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.
@Hayyan612 on GitHub · 2026-11-27 13:29 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-27 13:29 UTC · original
Claimed by @Hayyan612. Open a draft pull request with
Refs #347in its description within 24 hours, or the claim expires.@github-actions[bot] on GitHub · 2026-11-28 18:59 UTC · original
The claim by @Hayyan612 has expired: no pull request referenced it within 24 hours. This issue is free to claim.