feat(vk): 6 GB cards at Low leave out the big textures' top levels #3024
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3024
Loadingβ¦
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:feat/six-gb-texture-mips"
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?
Summary
On a 6 GB card, textures may take about 3.5 GB and the mirrors up to 1.7 GB, beside render targets, buffers and pipelines. Cards the driver allows 4.5 GiB or less already leave the top mip level out of big decoded ASTC textures at Minimum settings. This gives 6 GB cards the same limits at Low (what Auto (this PC) picks for them) and Minimum: textures wider than 1024 that would take over 8 MB as RGBA8 lose top levels.
A 6 GB card here is a discrete GPU with more than 4.5 and at most 6.5 GiB of its own memory (
mirror_rule::six_gb_card). Balanced and up keep the full textures, andRX_VK_LOW_VRAM_MIPS=0turns it off. The small BC3 scratch is chosen as before.Read first:
six_gb_texture_mipsingpu/vk/vk_texture.cpp.Testing
Tested: nothing. Not compiled, no tests run, not run in the game (asked to open it without testing).
Still to test:
tests/test_low_vram_texture_mips.py(six new cases), expecting a pass (by hand or CI).vk: budget:line shows less texture memory thanmain, textures look acceptable up close, no new artefacts (@Beanstalk with a 6 GB tag, or by hand).Measurements
Verdict: none yet. How much VRAM this saves on a 6 GB card, and what it does to the picture and frame rate, is unmeasured.
Risks
RX_VK_LOW_VRAM_MIPS=0turns it off. No cache or save changes.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). (Not run.)main, or Measurements says why there is nothing to measure. (Not measured.)third_party/untouched; nothing GPL-incompatible.π€ Generated with Claude Code
Possibly related, for context:
WIP: feat(vk): 6 GB cards at Low leave out the big textures' top levelsto feat(vk): 6 GB cards at Low leave out the big textures' top levels