mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Display FPS ranges.
This commit is contained in:
parent
0825c40938
commit
8211eb1371
@ -6422,6 +6422,10 @@ void View::DrawInfo()
|
||||
ImGui::SameLine();
|
||||
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 );
|
||||
if( dt > 0 )
|
||||
{
|
||||
@ -6661,6 +6665,8 @@ void View::DrawInfo()
|
||||
ImGui::TextDisabled( "Time range:" );
|
||||
ImGui::SameLine();
|
||||
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::SameLine();
|
||||
ImGui::Text( "%" PRIu64, bins[bin] );
|
||||
|
Loading…
Reference in New Issue
Block a user