From 6ca5eae2c3b95157f19f1199fe4189d167ff6c62 Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Tue, 28 Feb 2023 10:32:39 +0100 Subject: [PATCH] Show picked GPU with com_showFPS > 1 --- neo/framework/Console.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/neo/framework/Console.cpp b/neo/framework/Console.cpp index 14a51d8a..d260a6f6 100644 --- a/neo/framework/Console.cpp +++ b/neo/framework/Console.cpp @@ -320,12 +320,12 @@ float idConsoleLocal::DrawFPS( float y ) { // start smaller int32 statsWindowWidth = 320; - int32 statsWindowHeight = 295; + int32 statsWindowHeight = 315; if( com_showFPS.GetInteger() > 2 ) { statsWindowWidth += 230; - statsWindowHeight += 110; + statsWindowHeight += 105; } ImVec2 pos; @@ -350,6 +350,7 @@ float idConsoleLocal::DrawFPS( float y ) static ImVec4 colorLtGrey = ImVec4( 0.75f, 0.75f, 0.75f, 1.00f ); static ImVec4 colorMdGrey = ImVec4( 0.50f, 0.50f, 0.50f, 1.00f ); static ImVec4 colorDkGrey = ImVec4( 0.25f, 0.25f, 0.25f, 1.00f ); + static ImVec4 colorGold = ImVec4( 0.68f, 0.63f, 0.36f, 1.00f ); ImGui::Begin( "Performance Stats" ); @@ -431,6 +432,8 @@ float idConsoleLocal::DrawFPS( float y ) ImGui::TextColored( colorCyan, "API: %s, AA[%i, %i]: %s, %s", API, width, height, aaMode, resolutionText.c_str() ); + ImGui::TextColored( colorGold, "Device: %s", deviceManager->GetRendererString() ); + ImGui::TextColored( colorLtGrey, "GENERAL: views:%i draws:%i tris:%i (shdw:%i)", commonLocal.stats_frontend.c_numViews, commonLocal.stats_backend.c_drawElements + commonLocal.stats_backend.c_shadowElements,