From 899f1c802eea456724a66edf7ea39058f65afc67 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Mon, 31 Jan 2022 17:16:18 +0000 Subject: [PATCH] steamcompmgr: Bring back stats to un-break CI Don't know if we want to bring this back or not... We have better things for this now. But it's breaking CI. --- src/steamcompmgr.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index 95ab930..eab64d1 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -1424,6 +1424,23 @@ paint_all() override = global_focus.overrideWindow; input = global_focus.inputFocusWindow; + if (++frameCounter == 300) + { + currentFrameRate = 300 * 1000.0f / (currentTime - lastSampledFrameTime); + lastSampledFrameTime = currentTime; + frameCounter = 0; + + stats_printf( "fps=%f\n", currentFrameRate ); + + if ( w && w->isSteam ) + { + stats_printf( "focus=steam\n" ); + } + else + { + stats_printf( "focus=%i\n", w ? w->appID : 0 ); + } + } struct Composite_t composite = {}; struct VulkanPipeline_t pipeline = {};