From aa44ab71e5eae960e2b670a3079ea49a55b40638 Mon Sep 17 00:00:00 2001 From: Ivan Avdeev Date: Tue, 17 Oct 2023 10:26:35 -0400 Subject: [PATCH] vk: show only `speeds.` metrics when doing `SPEEDS_BIT_STATS`(2) --- ref/vk/r_speeds.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ref/vk/r_speeds.c b/ref/vk/r_speeds.c index f0ab9b7363..3e00aa4618 100644 --- a/ref/vk/r_speeds.c +++ b/ref/vk/r_speeds.c @@ -520,6 +520,9 @@ static int drawFrames( int draw, uint32_t prev_frame_index, int y, const vk_comb static void printMetrics( void ) { for (int i = 0; i < g_speeds.metrics_count; ++i) { const r_speeds_metric_t *const metric = g_speeds.metrics + i; + if (Q_strncmp(metric->name, "speeds", 6) != 0) + continue; + char buf[32]; metricTypeSnprintf(buf, sizeof(buf), (*metric->p_value), metric->type); speedsPrintf("%s: %s\n", metric->name, buf);