Display total frame set time.

This commit is contained in:
Bartosz Taudul 2018-09-01 01:12:04 +02:00
parent 27a2d8595d
commit 9b8a0a8364
2 changed files with 3 additions and 0 deletions

View File

@ -6373,11 +6373,13 @@ void View::DrawInfo()
m_frameSortData.average = float( total ) / fsz;
m_frameSortData.median = m_frameSortData.data[fsz/2];
m_frameSortData.total = total;
}
ImGui::Separator();
TextFocused( "Frame set:", m_frames->name == 0 ? "Frames" : m_worker.GetString( m_frames->name ) );
TextFocused( "Count:", RealToString( fsz, true ) );
TextFocused( "Total time:", TimeToString( m_frameSortData.total ) );
TextFocused( "Average frame time:", TimeToString( m_frameSortData.average ) );
ImGui::SameLine();
ImGui::TextDisabled( "(%s FPS)", RealToString( round( 1000000000.0 / m_frameSortData.average ), true ) );

View File

@ -362,6 +362,7 @@ private:
size_t frameNum = 0;
float average = 0;
float median = 0;
int64_t total = 0;
} m_frameSortData;
};