From f61fa7b0e4573b391d5eec1d537e8cbfc0d600bc Mon Sep 17 00:00:00 2001 From: Marcos Slomp Date: Wed, 11 Feb 2026 14:45:38 -0800 Subject: [PATCH] ensure that t0 <= t1 to prevent time-point crossover (leading to UI hangs) --- profiler/src/profiler/TracyView_Timeline.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/profiler/src/profiler/TracyView_Timeline.cpp b/profiler/src/profiler/TracyView_Timeline.cpp index 2fa550e3..9da11658 100644 --- a/profiler/src/profiler/TracyView_Timeline.cpp +++ b/profiler/src/profiler/TracyView_Timeline.cpp @@ -159,6 +159,7 @@ void View::HandleTimelineMouse( int64_t timespan, const ImVec2& wpos, float w ) t0 -= std::max( int64_t( 1 ), int64_t( p1 * mod ) ); t1 += std::max( int64_t( 1 ), int64_t( p2 * mod ) ); } + t1 = std::max(t0, t1); ZoomToRange( t0, t1, !m_worker.IsConnected() || m_viewMode == ViewMode::Paused ); } }