Commit bcfef7fe authored by m4xw's avatar m4xw
Browse files

[GLN64] Add MaxHiResTxVramLimit

parent 54ef0379
Pipeline #79183 passed with stages
in 4 minutes and 51 seconds
......@@ -208,6 +208,7 @@ extern "C" void Config_LoadConfig()
config.textureFilter.txEnhancedTextureFileStorage = EnableEnhancedTextureStorage;
config.textureFilter.txHresAltCRC = EnableHiResAltCRC;
config.textureFilter.txHiresTextureFileStorage = EnableEnhancedHighResStorage;
config.textureFilter.txHiresVramLimit = MaxHiResTxVramLimit;
config.frameBufferEmulation.nativeResFactor = EnableNativeResFactor;
config.generalEmulation.hacks = hacks;
......
......@@ -101,6 +101,7 @@ extern uint32_t EnableCopyColorToRDRAM;
extern uint32_t EnableCopyDepthToRDRAM;
extern uint32_t AspectRatio;
extern uint32_t MaxTxCacheSize;
extern uint32_t MaxHiResTxVramLimit;
extern uint32_t txFilterMode;
extern uint32_t txEnhancementMode;
extern uint32_t txHiresEnable;
......
......@@ -173,6 +173,7 @@ uint32_t EnableCopyColorToRDRAM = 0;
uint32_t EnableCopyDepthToRDRAM = 0;
uint32_t AspectRatio = 0;
uint32_t MaxTxCacheSize = 0;
uint32_t MaxHiResTxVramLimit = 0;
uint32_t txFilterMode = 0;
uint32_t txEnhancementMode = 0;
uint32_t txHiresEnable = 0;
......@@ -1146,6 +1147,13 @@ static void update_variables(bool startup)
txHiresFullAlphaChannel = !strcmp(var.value, "False") ? 0 : 1;
}
var.key = CORE_NAME "-MaxHiResTxVramLimit";
var.value = NULL;
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
MaxHiResTxVramLimit = atoi(var.value);
}
var.key = CORE_NAME "-MaxTxCacheSize";
var.value = NULL;
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
......
......@@ -787,6 +787,27 @@ struct retro_core_option_v2_definition option_defs_us[] = {
},
"0"
},
{
CORE_NAME "-MaxHiResTxVramLimit",
"Max High-Res VRAM Limit",
NULL,
"(GLN64) Limit High-Res textures size in VRAM (in MB, 0 = no limit).",
"Limit High-Res textures size in VRAM (in MB, 0 = no limit).",
"gliden64",
{
{"0", NULL},
{"500", NULL},
{"1000", NULL},
{"1500", NULL},
{"2000", NULL},
{"2500", NULL},
{"3000", NULL},
{"3500", NULL},
{"4000", NULL},
{ NULL, NULL },
},
"0"
},
{
CORE_NAME "-MaxTxCacheSize",
"Max texture cache size",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment