Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
mupen64plus-libretro-nx
Commits
ca1deafe
Commit
ca1deafe
authored
Jan 12, 2022
by
m4xw
Browse files
Add CountPerOpDenomPot (Overclock)
parent
5404186b
Changes
4
Hide whitespace changes
Inline
Side-by-side
custom/mupen64plus-next_common.h
View file @
ca1deafe
...
...
@@ -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
;
...
...
libretro/libretro.c
View file @
ca1deafe
...
...
@@ -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
...
...
libretro/libretro_core_options.h
View file @
ca1deafe
...
...
@@ -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)"
,
...
...
mupen64plus-core/src/main/main.c
View file @
ca1deafe
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment