mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-15 21:29:58 -04:00
Add a Video memory use row: Low, Balanced or High.
Balanced, the default, is what the earlier commits made the default. High keeps what DLSS, frame generation's HUD-less picture, FSR 1 and SMAA made after they are switched off, as before them. Low also sets, for the keys the player leaves unset: released textures keep at most 1 GiB (tex_released_mb), textures give way from 70% of the video memory budget (tex_vram_pressure) and the shared pipeline list is built at first draw (pipe_seed_boot = 0). Unsampled live textures are not dropped in any of them: that eviction left the ground see-through for good. The values come after the device profile and the low-end mode (cfg.c VRAMLOW); the row is in the Screen tab under Texture detail and takes effect after a restart. The architecture notes describe the new memory report lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -766,6 +766,15 @@ static void row_texture_detail(void) {
|
||||
opt_choice_list("NX2NAVI_TEXTURE_DETAIL", UI_MENU_TEX_DETAIL, vals, names, 4, UI_MENU_TEX_DETAIL_DESC);
|
||||
}
|
||||
|
||||
// Video memory use (cfg.c VRAMLOW, cfg_vram_keep): low sets smaller texture caches and builds the shared pipeline list
|
||||
// at first use, high keeps what switched-off features made. Read at the start, so the row notes the restart.
|
||||
static void row_vram_use(void) {
|
||||
static const char *const vals[] = {"low", "balanced", "high"};
|
||||
const char *names[] = {menu_text(UI_MENU_VRAM_USE_LOW), menu_text(UI_MENU_VRAM_USE_BALANCED),
|
||||
menu_text(UI_MENU_VRAM_USE_HIGH)};
|
||||
opt_choice_list("NX2NAVI_VRAM_USE", UI_MENU_VRAM_USE, vals, names, 3, UI_MENU_VRAM_USE_DESC);
|
||||
}
|
||||
|
||||
static void row_shadow_scale(void) {
|
||||
static const char *const vals[] = {"1", "2", "3", "4"};
|
||||
static const char *const names[] = {"960 (1x)", "1920 (2x)", "2880 (3x)", "3840 (4x)"};
|
||||
@@ -1320,6 +1329,7 @@ static void tab_screen(float scale) {
|
||||
const char *aniso_names[] = {menu_text(UI_MENU_ANISO_GAME), "2x", "4x", "8x", "16x"};
|
||||
opt_choice_list("NX2NAVI_ANISO", UI_MENU_ANISO, aniso, aniso_names, 5, UI_MENU_ANISO_DESC);
|
||||
row_texture_detail();
|
||||
row_vram_use();
|
||||
opt_end();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user