From 1ff9e0012bbff9e490797aab178115e20ac35313 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 5 Apr 2023 19:34:39 +0200 Subject: [PATCH] Add a note why context switches only have coarse visibility check. --- server/TracyTimelineItemThread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyTimelineItemThread.cpp b/server/TracyTimelineItemThread.cpp index b91de0f3..0ae0c934 100644 --- a/server/TracyTimelineItemThread.cpp +++ b/server/TracyTimelineItemThread.cpp @@ -309,6 +309,8 @@ void TimelineItemThread::Preprocess( const TimelineContext& ctx, TaskDispatch& t auto ctxSwitch = m_worker.GetContextSwitchData( m_thread->id ); if( ctxSwitch ) { + // There is no yPos passed here to enable more granular visibility check, + // as context switch shadows will usually be projected down onto zones. td.Queue( [this, &ctx, ctxSwitch, visible] { PreprocessContextSwitches( ctx, *ctxSwitch, visible ); } );