From 17e6a975527b7b93eceed1e86209078bfe52b2d4 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 7 Sep 2019 17:49:54 +0200 Subject: [PATCH] Let's leave this here. --- server/TracyView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index b9750f98..45970b1a 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1271,6 +1271,7 @@ void View::DrawFrames() } int64_t zoneTime = 0; + // This search is not valid, as zones are sorted according to their start time, not end time. auto itStart = std::lower_bound( begin, zoneData.zones.end(), f0, [this] ( const auto& l, const auto& r ) { return m_worker.GetZoneEndDirect( *l.Zone() ) < r; } ); if( itStart != zoneData.zones.end() ) {