Reimplement driver_adjust_rates
This commit is contained in:
parent
ed49c03e0a
commit
e9d2d966cd
2
driver.c
2
driver.c
|
@ -229,8 +229,8 @@ void driver_adjust_system_rates(void)
|
||||||
void driver_set_refresh_rate(float hz)
|
void driver_set_refresh_rate(float hz)
|
||||||
{
|
{
|
||||||
video_monitor_set_refresh_rate(hz);
|
video_monitor_set_refresh_rate(hz);
|
||||||
driver_adjust_system_rates();
|
|
||||||
audio_monitor_set_refresh_rate();
|
audio_monitor_set_refresh_rate();
|
||||||
|
driver_adjust_system_rates();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -40,10 +40,10 @@ void video_monitor_adjust_system_rates(void)
|
||||||
g_settings.video.refresh_rate,
|
g_settings.video.refresh_rate,
|
||||||
(float)info->fps);
|
(float)info->fps);
|
||||||
|
|
||||||
/* We won't be able to do VSync reliably when game FPS > monitor FPS. */
|
|
||||||
if (info->fps <= g_settings.video.refresh_rate)
|
if (info->fps <= g_settings.video.refresh_rate)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* We won't be able to do VSync reliably when game FPS > monitor FPS. */
|
||||||
g_extern.system.force_nonblock = true;
|
g_extern.system.force_nonblock = true;
|
||||||
RARCH_LOG("Game FPS > Monitor FPS. Cannot rely on VSync.\n");
|
RARCH_LOG("Game FPS > Monitor FPS. Cannot rely on VSync.\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue