mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Ignore frames with 0 time.
This commit is contained in:
parent
2c43e1337f
commit
19f3c5f5ff
@ -6449,8 +6449,11 @@ void View::DrawInfo()
|
||||
for( size_t i=m_frameSortData.frameNum; i<fsz; i++ )
|
||||
{
|
||||
const auto t = m_worker.GetFrameTime( *m_frames, i );
|
||||
vec.emplace_back( t );
|
||||
total += t;
|
||||
if( t > 0 )
|
||||
{
|
||||
vec.emplace_back( t );
|
||||
total += t;
|
||||
}
|
||||
}
|
||||
auto mid = vec.begin() + m_frameSortData.frameNum;
|
||||
pdqsort_branchless( mid, m_frameSortData.data.end() );
|
||||
|
Loading…
Reference in New Issue
Block a user