mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-05 02:58:04 +00:00
Set custom refresh rate before starting main loop.
This commit is contained in:
parent
e4e0d9c72d
commit
4d802ccfbc
@ -469,6 +469,7 @@ static void* android_app_entry(void* param)
|
||||
RARCH_LOG("RetroArch started.\n");
|
||||
rarch_init_msg_queue();
|
||||
g_android.last_orient = AConfiguration_getOrientation(android_app->config);
|
||||
driver_set_monitor_refresh_rate(g_android.disp_refresh_rate);
|
||||
while((input_key_pressed_func(RARCH_PAUSE_TOGGLE)) ? android_run_events(g_android.app) : rarch_main_iterate());
|
||||
RARCH_LOG("RetroArch stopped.\n");
|
||||
}
|
||||
|
@ -187,13 +187,7 @@ void config_set_defaults(void)
|
||||
g_settings.video.second_pass_smooth = second_pass_smooth;
|
||||
#endif
|
||||
|
||||
// Android screens can have variable refresh rates - don't set a
|
||||
// hardcoded value for Android devices
|
||||
#if defined(ANDROID)
|
||||
g_settings.video.refresh_rate = g_android.disp_refresh_rate;
|
||||
#else
|
||||
g_settings.video.refresh_rate = refresh_rate;
|
||||
#endif
|
||||
g_settings.video.post_filter_record = post_filter_record;
|
||||
g_settings.video.gpu_record = gpu_record;
|
||||
g_settings.video.gpu_screenshot = gpu_screenshot;
|
||||
|
Loading…
x
Reference in New Issue
Block a user