mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +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& timeline = v.timeline;
|
||||||
auto it = std::lower_bound( timeline.begin(), timeline.end(), m_zvStart, [] ( const auto& l, const auto& r ) { return l->end < r; } );
|
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; } );
|
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 )
|
while( it < zitend )
|
||||||
{
|
{
|
||||||
auto& ev = **it;
|
auto& ev = **it;
|
||||||
@ -892,6 +892,7 @@ void View::DrawZones()
|
|||||||
|
|
||||||
it++;
|
it++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
draw->AddText( wpos + ImVec2( 0, offset ), 0xFFFFFFFF, GetThreadString( v.id ) );
|
draw->AddText( wpos + ImVec2( 0, offset ), 0xFFFFFFFF, GetThreadString( v.id ) );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user