From 0c468f9a443874b51bb48b3d4cc3ba52ef6ff584 Mon Sep 17 00:00:00 2001 From: sonninnos <45124675+sonninnos@users.noreply.github.com> Date: Sat, 21 Sep 2024 06:09:21 +0300 Subject: [PATCH] Honor 'perfcnt_enable' in logging (#17022) --- runloop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runloop.c b/runloop.c index 11e4a32f92..0e4bf6b963 100644 --- a/runloop.c +++ b/runloop.c @@ -395,6 +395,9 @@ void runloop_log_counters( static void runloop_perf_log(void) { + if (!runloop_state.perfcnt_enable) + return; + RARCH_LOG("[PERF]: Performance counters (libretro):\n"); runloop_log_counters(runloop_state.perf_counters_libretro, runloop_state.perf_ptr_libretro);