From cdfc89b975b83c3d504c1171f3f98018fd0ffbc7 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 25 Jan 2017 17:13:29 +0100 Subject: [PATCH] use perfcounter plus functions for video_thread_wrapper too --- gfx/video_thread_wrapper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/video_thread_wrapper.c b/gfx/video_thread_wrapper.c index e36afd63cf..f7d390f9cc 100644 --- a/gfx/video_thread_wrapper.c +++ b/gfx/video_thread_wrapper.c @@ -730,7 +730,7 @@ static bool video_thread_frame(void *data, const void *frame_, } performance_counter_init(thr_frame, "thr_frame"); - performance_counter_start(thr_frame); + performance_counter_start_plus(video_info->is_perfcnt_enable, thr_frame); copy_stride = width * (thr->info.rgb32 ? sizeof(uint32_t) : sizeof(uint16_t)); @@ -799,7 +799,7 @@ static bool video_thread_frame(void *data, const void *frame_, slock_unlock(thr->lock); - performance_counter_stop(thr_frame); + performance_counter_stop_plus(video_info->is_perfcnt_enable, thr_frame); thr->last_time = cpu_features_get_time_usec(); return true;