Display FPS ranges.

This commit is contained in:
Bartosz Taudul 2018-09-01 01:39:29 +02:00
parent 0825c40938
commit 8211eb1371

View File

@ -6422,6 +6422,10 @@ void View::DrawInfo()
ImGui::SameLine(); ImGui::SameLine();
ImGui::Text( "%s - %s (%s)", TimeToString( tmin ), TimeToString( tmax ), TimeToString( tmax - tmin ) ); ImGui::Text( "%s - %s (%s)", TimeToString( tmin ), TimeToString( tmax ), TimeToString( tmax - tmin ) );
ImGui::TextDisabled( "FPS range:" );
ImGui::SameLine();
ImGui::Text( "%s FPS - %s FPS", RealToString( round( 1000000000.0 / tmin ), true ), RealToString( round( 1000000000.0 / tmax ), true ) );
const auto dt = double( tmax - tmin ); const auto dt = double( tmax - tmin );
if( dt > 0 ) if( dt > 0 )
{ {
@ -6661,6 +6665,8 @@ void View::DrawInfo()
ImGui::TextDisabled( "Time range:" ); ImGui::TextDisabled( "Time range:" );
ImGui::SameLine(); ImGui::SameLine();
ImGui::Text( "%s - %s", TimeToString( t0 ), TimeToString( t1 ) ); ImGui::Text( "%s - %s", TimeToString( t0 ), TimeToString( t1 ) );
ImGui::SameLine();
ImGui::TextDisabled( "(%s FPS - %s FPS)", RealToString( round( 1000000000.0 / t0 ), true ), RealToString( round( 1000000000.0 / t1 ), true ) );
ImGui::TextDisabled( "Count:" ); ImGui::TextDisabled( "Count:" );
ImGui::SameLine(); ImGui::SameLine();
ImGui::Text( "%" PRIu64, bins[bin] ); ImGui::Text( "%" PRIu64, bins[bin] );