diff --git a/server/TracyTimelineItemThread.cpp b/server/TracyTimelineItemThread.cpp index 657f892a..ce7235a8 100644 --- a/server/TracyTimelineItemThread.cpp +++ b/server/TracyTimelineItemThread.cpp @@ -585,7 +585,7 @@ void TimelineItemThread::PreprocessMessages( const TimelineContext& ctx, const V const auto vEnd = ctx.vEnd; const auto nspx = ctx.nspx; - const auto MinVisNs = MinVisSize * nspx; + const auto MinVisNs = int64_t( round( GetScale() * MinVisSize * nspx ) ); auto it = std::lower_bound( vec.begin(), vec.end(), vStart, [] ( const auto& lhs, const auto& rhs ) { return lhs->time < rhs; } ); if( it == vec.end() ) return;