mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Clip found zones list.
This commit is contained in:
parent
f86fbe7fd5
commit
a84eec1aef
@ -9573,8 +9573,12 @@ void View::DrawZoneList( const Vector<short_ptr<ZoneEvent>>& zones )
|
||||
}
|
||||
}
|
||||
|
||||
for( auto& ev : *zonesToIterate )
|
||||
ImGuiListClipper clipper( zonesToIterate->size() );
|
||||
while( clipper.Step() )
|
||||
{
|
||||
for( auto i=clipper.DisplayStart; i<clipper.DisplayEnd; i++ )
|
||||
{
|
||||
auto ev = (*zonesToIterate)[i].get();
|
||||
const auto end = m_worker.GetZoneEndDirect( *ev );
|
||||
int64_t timespan;
|
||||
if( m_findZone.runningTime )
|
||||
@ -9621,6 +9625,7 @@ void View::DrawZoneList( const Vector<short_ptr<ZoneEvent>>& zones )
|
||||
if( m_zoneHover == ev ) ImGui::PopStyleColor();
|
||||
ImGui::PopID();
|
||||
}
|
||||
}
|
||||
ImGui::Columns( 1 );
|
||||
ImGui::Separator();
|
||||
ImGui::TreePop();
|
||||
|
Loading…
Reference in New Issue
Block a user