diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 536079d7..67912aa9 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4599,6 +4599,28 @@ void View::DrawFindZone() const auto tmax = zoneData.max; const auto timeTotal = zoneData.total; + const auto zsz = zones.size(); + if( m_findZone.sortedNum != zsz ) + { + auto& vec = m_findZone.sorted; + vec.reserve( zsz ); + size_t i; + for( i=m_findZone.sortedNum; i::max() ) { ImGui::Checkbox( "Log values", &m_findZone.logVal ); diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 80ce5db6..6eae9cb9 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -291,6 +291,8 @@ private: Region highlight; int64_t numBins = -1; std::unique_ptr bins, binTime, selBin; + std::vector sorted; + size_t sortedNum; void Reset() { @@ -299,6 +301,8 @@ private: selMatch = 0; selGroup = Unselected; highlight.active = false; + sorted.clear(); + sortedNum = 0; } void ResetGroups()