Display FPS time range values in frame compare.

This commit is contained in:
Bartosz Taudul
2026-07-14 23:56:28 +02:00
parent f7c63ac40c
commit 3e91ee15b1

View File

@@ -1688,6 +1688,17 @@ void View::DrawCompare()
TextDisabledUnformatted( "Time range:" );
ImGui::SameLine();
ImGui::Text( "%s - %s", TimeToString( t0 ), TimeToString( t1 ) );
ImGui::SameLine();
const auto fps0 = round( 1000000000.0 / t0 );
const auto fps1 = round( 1000000000.0 / t1 );
if( fps0 == fps1 )
{
ImGui::TextDisabled( "(%s FPS)", RealToString( fps0 ) );
}
else
{
ImGui::TextDisabled( "(%s FPS - %s FPS)", RealToString( fps0 ), RealToString( fps1 ) );
}
TextDisabledUnformatted( "Count:" );
ImGui::SameLine();
ImGui::Text( "%s / %s", RealToString( floor( bins[bin].v0 ) ), RealToString( floor( bins[bin].v1 ) ) );