mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Properly track events if there are no frame marks.
This commit is contained in:
parent
7ffa987857
commit
84cb8ab9cc
@ -623,7 +623,14 @@ void View::DrawFrames()
|
||||
{
|
||||
m_frameStart = ( total < onScreen * group ) ? 0 : total - onScreen * group;
|
||||
m_zvStart = m_frames[std::max( 0, (int)m_frames.size() - 4 )];
|
||||
m_zvEnd = m_frames.back();
|
||||
if( m_frames.size() == 1 )
|
||||
{
|
||||
m_zvEnd = GetLastTime();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_zvEnd = m_frames.back();
|
||||
}
|
||||
}
|
||||
|
||||
if( hover )
|
||||
|
Loading…
Reference in New Issue
Block a user