mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Display frame set time as a percentage of profile time.
This commit is contained in:
parent
98b5363ebc
commit
8df82278a5
@ -6376,10 +6376,14 @@ void View::DrawInfo()
|
||||
m_frameSortData.total = total;
|
||||
}
|
||||
|
||||
const auto profileSpan = m_worker.GetLastTime() - m_worker.GetTimeBegin();
|
||||
|
||||
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 ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "(%.2f%% of profile time span)", m_frameSortData.total / float( profileSpan ) * 100.f );
|
||||
TextFocused( "Average frame time:", TimeToString( m_frameSortData.average ) );
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "(%s FPS)", RealToString( round( 1000000000.0 / m_frameSortData.average ), true ) );
|
||||
|
Loading…
Reference in New Issue
Block a user