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
49cdbf05
Commit
49cdbf05
authored
Mar 15, 2020
by
Vladimir Serbinenko
Browse files
Fix a bug that results in 60fps if any options are changed
parent
16a1d7dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/libretro.c
View file @
49cdbf05
...
...
@@ -715,21 +715,23 @@ static void update_variables(bool startup)
var
.
key
=
"tyrquake_framerate"
;
var
.
value
=
NULL
;
if
(
startup
&&
environ_cb
(
RETRO_ENVIRONMENT_GET_VARIABLE
,
&
var
)
)
if
(
startup
)
{
if
(
!
strcmp
(
var
.
value
,
"auto"
))
{
float
target_framerate
=
0
.
0
f
;
if
(
!
environ_cb
(
RETRO_ENVIRONMENT_GET_TARGET_REFRESH_RATE
,
&
target_framerate
))
target_framerate
=
60
.
0
f
;
framerate
=
target_framerate
;
}
else
if
(
environ_cb
(
RETRO_ENVIRONMENT_GET_VARIABLE
,
&
var
))
{
if
(
!
strcmp
(
var
.
value
,
"auto"
))
{
float
target_framerate
=
0
.
0
f
;
if
(
!
environ_cb
(
RETRO_ENVIRONMENT_GET_TARGET_REFRESH_RATE
,
&
target_framerate
))
target_framerate
=
60
.
0
f
;
framerate
=
target_framerate
;
}
else
framerate
=
atof
(
var
.
value
);
}
else
framerate
=
60
.
0
f
;
}
else
framerate
=
60
.
0
f
;
var
.
key
=
"tyrquake_colored_lighting"
;
var
.
value
=
NULL
;
...
...
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