Skip to content

Commit

Permalink
vk: show only speeds. metrics when doing SPEEDS_BIT_STATS(2)
Browse files Browse the repository at this point in the history
  • Loading branch information
w23 committed Oct 17, 2023
1 parent 2f7b9d5 commit aa44ab7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ref/vk/r_speeds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa44ab7

Please sign in to comment.