mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Always display threads in their original appearance order.
This commit is contained in:
parent
3141d17988
commit
3ea18dcbfd
@ -858,9 +858,9 @@ void View::DrawZones()
|
||||
{
|
||||
auto& timeline = v.timeline;
|
||||
auto it = std::lower_bound( timeline.begin(), timeline.end(), m_zvStart, [] ( const auto& l, const auto& r ) { return l->end < r; } );
|
||||
if( it == timeline.end() ) continue;
|
||||
if( it != timeline.end() )
|
||||
{
|
||||
const auto zitend = std::lower_bound( timeline.begin(), timeline.end(), m_zvEnd, [] ( const auto& l, const auto& r ) { return l->start < r; } );
|
||||
|
||||
while( it < zitend )
|
||||
{
|
||||
auto& ev = **it;
|
||||
@ -892,6 +892,7 @@ void View::DrawZones()
|
||||
|
||||
it++;
|
||||
}
|
||||
}
|
||||
|
||||
draw->AddText( wpos + ImVec2( 0, offset ), 0xFFFFFFFF, GetThreadString( v.id ) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user