mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
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)
|
||||
{
|
||||
video_monitor_set_refresh_rate(hz);
|
||||
driver_adjust_system_rates();
|
||||
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,
|
||||
(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)
|
||||
return;
|
||||
|
||||
/* We won't be able to do VSync reliably when game FPS > monitor FPS. */
|
||||
g_extern.system.force_nonblock = true;
|
||||
RARCH_LOG("Game FPS > Monitor FPS. Cannot rely on VSync.\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user