mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Add a note why context switches only have coarse visibility check.
This commit is contained in:
parent
51f832c031
commit
1ff9e0012b
@ -309,6 +309,8 @@ void TimelineItemThread::Preprocess( const TimelineContext& ctx, TaskDispatch& t
|
|||||||
auto ctxSwitch = m_worker.GetContextSwitchData( m_thread->id );
|
auto ctxSwitch = m_worker.GetContextSwitchData( m_thread->id );
|
||||||
if( ctxSwitch )
|
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] {
|
td.Queue( [this, &ctx, ctxSwitch, visible] {
|
||||||
PreprocessContextSwitches( ctx, *ctxSwitch, visible );
|
PreprocessContextSwitches( ctx, *ctxSwitch, visible );
|
||||||
} );
|
} );
|
||||||
|
Loading…
Reference in New Issue
Block a user