From 9a785976c0dc03433ad3313fa0b562ed92af502f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 22 Jun 2026 23:47:30 +0200 Subject: [PATCH] Ignore zero-length sections. --- profiler/src/profiler/TracyView_FrameTimeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_FrameTimeline.cpp b/profiler/src/profiler/TracyView_FrameTimeline.cpp index 9549cadc..a88afeb0 100644 --- a/profiler/src/profiler/TracyView_FrameTimeline.cpp +++ b/profiler/src/profiler/TracyView_FrameTimeline.cpp @@ -348,7 +348,7 @@ void View::DrawTimelineSections() { const auto start = v.start.Val(); const auto end = v.end.IsNonNegative() ? v.end.Val() : m_worker.GetLastTime(); - if( start < m_vd.zvEnd && end > m_vd.zvStart ) visible.emplace_back( SectionEntry { + if( end - start > 0 && start < m_vd.zvEnd && end > m_vd.zvStart ) visible.emplace_back( SectionEntry { .idx = idx, .len = end - start, .start = std::max( start, m_vd.zvStart ),