From 19f3c5f5ff2e60c95e8dee353503cfb3feaf564e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 8 Sep 2018 19:04:38 +0200 Subject: [PATCH] Ignore frames with 0 time. --- server/TracyView.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 93132465..3a6f36b4 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6449,8 +6449,11 @@ void View::DrawInfo() for( size_t i=m_frameSortData.frameNum; i 0 ) + { + vec.emplace_back( t ); + total += t; + } } auto mid = vec.begin() + m_frameSortData.frameNum; pdqsort_branchless( mid, m_frameSortData.data.end() );