mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Last time should never be zero.
This commit is contained in:
parent
5e9b2e36be
commit
4424a7d7e8
@ -864,7 +864,8 @@ int64_t Worker::GetFrameTime( const FrameData& fd, size_t idx ) const
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return m_data.lastTime == 0 ? 0 : m_data.lastTime - fd.frames.back();
|
assert( m_data.lastTime != 0 );
|
||||||
|
return m_data.lastTime - fd.frames.back();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user