Add a note why context switches only have coarse visibility check.

This commit is contained in:
Bartosz Taudul 2023-04-05 19:34:39 +02:00
parent 51f832c031
commit 1ff9e0012b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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 );
} );