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
tyrquake
Commits
3ac717fb
Commit
3ac717fb
authored
Mar 14, 2019
by
Libretro-Admin
Browse files
Mistakenly committed 120fps which is not ready yet (sound is bad
with 120fps right now - some sound work is needed)
parent
9ab2b7ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/libretro.c
View file @
3ac717fb
...
...
@@ -174,7 +174,7 @@ gp_layout_t classic = {
gp_layout_t
*
gp_layoutp
=
NULL
;
cvar_t
framerate
=
{
"framerate"
,
"
12
0"
,
true
};
cvar_t
framerate
=
{
"framerate"
,
"
6
0"
,
true
};
static
bool
initial_resolution_set
=
false
;
static
int
invert_y_axis
=
1
;
...
...
@@ -449,8 +449,8 @@ void retro_get_system_info(struct retro_system_info *info)
void
retro_get_system_av_info
(
struct
retro_system_av_info
*
info
)
{
info
->
timing
.
fps
=
120
;
info
->
timing
.
sample_rate
=
SAMPLERATE
;
info
->
timing
.
fps
=
framerate
.
value
;
info
->
timing
.
sample_rate
=
SAMPLERATE
;
info
->
geometry
.
base_width
=
width
;
info
->
geometry
.
base_height
=
height
;
...
...
@@ -773,7 +773,7 @@ void retro_run(void)
if
(
!
state_rumble
)
retro_unset_rumble_strong
();
Host_Frame
(
0
.
0
0
8334
);
Host_Frame
(
0
.
0
16667
);
if
(
shutdown_core
)
return
;
...
...
@@ -958,8 +958,8 @@ bool retro_load_game(const struct retro_game_info *info)
}
Cvar_RegisterVariable
(
&
framerate
);
Cvar_Set
(
"framerate"
,
"
12
0"
);
Cvar_Set
(
"sys_ticrate"
,
"0.0
08334
"
);
Cvar_Set
(
"framerate"
,
"
6
0"
);
Cvar_Set
(
"sys_ticrate"
,
"0.0
16667
"
);
/* Override some default binds with more modern ones if we are booting the
...
...
@@ -1225,7 +1225,7 @@ static void audio_process(void)
static
void
audio_callback
(
void
)
{
unsigned
read_first
,
read_second
;
float
samples_per_frame
=
(
2
*
SAMPLERATE
)
/
120
;
float
samples_per_frame
=
(
2
*
SAMPLERATE
)
/
framerate
.
value
;
unsigned
read_end
=
audio_buffer_ptr
+
samples_per_frame
;
if
(
read_end
>
AUDIO_BUFFER_SAMPLES
)
...
...
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