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