Do check outside of rarch_perf_log

This commit is contained in:
twinaphex 2020-02-29 08:05:49 +01:00
parent 160d90f22a
commit b1fa971d35
2 changed files with 2 additions and 4 deletions

View File

@ -108,9 +108,6 @@ static void log_counters(struct retro_perf_counter **counters, unsigned num)
void rarch_perf_log(void)
{
if (!rarch_ctl(RARCH_CTL_IS_PERFCNT_ENABLE, NULL))
return;
RARCH_LOG("[PERF]: Performance counters (RetroArch):\n");
log_counters(perf_counters_rarch, perf_ptr_rarch);
}

View File

@ -8121,7 +8121,8 @@ void main_exit(void *args)
#endif
rarch_ctl(RARCH_CTL_MAIN_DEINIT, NULL);
rarch_perf_log();
if (runloop_perfcnt_enable)
rarch_perf_log();
#if defined(HAVE_LOGGER) && !defined(ANDROID)
logger_shutdown();