Show picked GPU with com_showFPS > 1

This commit is contained in:
Robert Beckebans 2023-02-28 10:32:39 +01:00
parent c95419e1d9
commit 6ca5eae2c3

View file

@ -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,