From 3c54d94191b0888af3712f7c330943068604cab8 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Tue, 23 Jan 2024 11:21:14 +0100 Subject: Add improved renderer routines with DMA option --- src/profiling.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/profiling.c') diff --git a/src/profiling.c b/src/profiling.c index 6b073ed..07f4bbf 100644 --- a/src/profiling.c +++ b/src/profiling.c @@ -9,7 +9,7 @@ #if PROF_ENABLE > 0 #ifndef PROF_RESET_MINMAX -#define PROF_RESET_MINMAX false +#define PROF_RESET_MINMAX true #endif // Maximum number of profiling to monitor. @@ -74,7 +74,7 @@ bool prof_show = true; prof_frame_avg, \ (u32)((u64)280896 * 60 / (prof_frame_avg + 1)));\ txt_drawf_small("MAX: %.9l/%l", 8 * 19, 0, COL_FG, \ - prof_frame_time_max,280896);\ + prof_frame_time_max, 280896);\ for (size_t idx = 0; idx < PROF_NUM; idx++) { \ txt_drawf_small("%s %.9l (%.9l %.9l) %08x:%08x", 0, 8 * (idx + 1), COL_FG, \ prof_type_str[idx], \ @@ -91,6 +91,7 @@ bool prof_show = true; if (prof_reset_minmax) { \ prof_min[idx] = -1; \ prof_max[idx] = 0; \ + prof_frame_time_max = 0; \ } \ prof_times[idx] = 0; \ prof_count[idx] = 0; \ -- cgit v1.2.1