From 66318bdb3b7def110f59391f51bd95a5c2169158 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 8 Jun 2021 22:56:06 +0200 Subject: [PATCH] Display target FPS also as time available. --- server/TracyView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 9d69ee00..ceb3a0d8 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -8510,12 +8510,14 @@ void View::DrawOptions() m_vd.drawFrameTargets = val; ImGui::Indent(); int tmp = m_vd.frameTarget; - ImGui::SetNextItemWidth( 120 ); + ImGui::SetNextItemWidth( 90 ); if( ImGui::InputInt( "Target FPS", &tmp ) ) { if( tmp < 1 ) tmp = 1; m_vd.frameTarget = tmp; } + ImGui::SameLine(); + TextDisabledUnformatted( TimeToString( 1000*1000*1000 / tmp ) ); ImGui::Unindent(); if( m_worker.HasContextSwitches() ) {