Commit ca1deafe authored by m4xw's avatar m4xw
Browse files

Add CountPerOpDenomPot (Overclock)

parent 5404186b
......@@ -115,6 +115,7 @@ extern uint32_t EnableFrameDuping;
extern uint32_t EnableLODEmulation;
extern uint32_t EnableFullspeed;
extern uint32_t CountPerOp;
extern uint32_t CountPerOpDenomPot;
extern uint32_t CountPerScanlineOverride;
extern uint32_t BackgroundMode;
extern uint32_t EnableEnhancedTextureStorage;
......
......@@ -206,6 +206,7 @@ uint32_t OverscanBottom = 0;
uint32_t EnableFullspeed = 0;
uint32_t CountPerOp = 0;
uint32_t CountPerOpDenomPot = 0;
uint32_t CountPerScanlineOverride = 0;
uint32_t ForceDisableExtraMem = 0;
uint32_t IgnoreTLBExceptions = 0;
......@@ -1299,6 +1300,13 @@ static void update_variables(bool startup)
CountPerOp = atoi(var.value);
}
var.key = CORE_NAME "-CountPerOpDenomPot";
var.value = NULL;
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
CountPerOpDenomPot = atoi(var.value);
}
if(EnableFullspeed)
{
CountPerOp = 1; // Force CountPerOp == 1
......
......@@ -1455,6 +1455,30 @@ struct retro_core_option_v2_definition option_defs_us[] = {
},
"0"
},
{
CORE_NAME "-CountPerOpDenomPot",
"Count Per Op Divider (Overclock)",
NULL,
"Denominator for Count per Op (allowing sub-1 Count per Op in practice). Changing this can break stuff!",
NULL,
NULL,
{
{"0", NULL},
{"1", NULL},
{"2", NULL},
{"3", NULL},
{"4", NULL},
{"5", NULL},
{"6", NULL},
{"7", NULL},
{"8", NULL},
{"9", NULL},
{"10", NULL},
{"11", NULL},
{ NULL, NULL },
},
"0"
},
{
CORE_NAME "-astick-deadzone",
"Analog Deadzone (percent)",
......
......@@ -1316,7 +1316,7 @@ m64p_error main_run(void)
randomize_interrupt = 0; // We don't want this right now
no_compiled_jump = 0;
count_per_op = CountPerOp;
count_per_op_denom_pot = 0;
count_per_op_denom_pot = CountPerOpDenomPot;
disable_extra_mem = ROM_SETTINGS.disableextramem;
uint16_t eeprom_type = JDT_NONE;
......
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