mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Display total frame set time.
This commit is contained in:
@@ -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 ) );
|
||||
|
||||
Reference in New Issue
Block a user