(retroarch.c) Cleanups

This commit is contained in:
twinaphex 2019-04-21 23:42:21 +02:00
parent b998bda5a1
commit d281e3f889

View File

@ -857,9 +857,7 @@ void rarch_core_runtime_tick(void)
retro_time_t current_usec = cpu_features_get_time_usec();
if (current_usec - libretro_core_runtime_last < frame_time)
{
frame_time = current_usec - libretro_core_runtime_last;
}
libretro_core_runtime_last = current_usec;
}
@ -870,12 +868,12 @@ void rarch_core_runtime_tick(void)
static void update_runtime_log(bool log_per_core)
{
runtime_log_t *runtime_log = NULL;
/* Initialise runtime log file */
runtime_log = runtime_log_init(runtime_content_path, runtime_core_path, log_per_core);
if (runtime_log)
{
runtime_log_t *runtime_log = runtime_log_init(runtime_content_path, runtime_core_path, log_per_core);
if (!runtime_log)
return;
/* Add additional runtime */
runtime_log_add_runtime_usec(runtime_log, libretro_core_runtime_usec);
@ -888,7 +886,6 @@ static void update_runtime_log(bool log_per_core)
/* Clean up */
free(runtime_log);
}
}
#ifdef HAVE_THREADS
void runloop_msg_queue_lock(void)