mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 02:32:18 +00:00
Show picked GPU with com_showFPS > 1
This commit is contained in:
parent
c95419e1d9
commit
6ca5eae2c3
1 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue