mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Frames will never be empty anymore.
This commit is contained in:
parent
fc01be2138
commit
c9aaa03b28
@ -418,7 +418,7 @@ void View::DrawImpl()
|
||||
ImGui::Begin( "Profiler", nullptr, ImGuiWindowFlags_ShowBorders );
|
||||
if( ImGui::Button( m_pause ? "Resume" : "Pause", ImVec2( 80, 0 ) ) ) m_pause = !m_pause;
|
||||
ImGui::SameLine();
|
||||
ImGui::Text( "Frames: %-7i Time span: %s", m_frames.size(), m_frames.empty() ? "---" : TimeToString( GetLastTime() - m_frames[0] ) );
|
||||
ImGui::Text( "Frames: %-7i Time span: %s", m_frames.size(), TimeToString( GetLastTime() - m_frames[0] ) );
|
||||
DrawFrames();
|
||||
ImGui::End();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user