mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Reorder checks.
This commit is contained in:
parent
f89713b7c6
commit
b6244d1180
@ -2363,8 +2363,8 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
|
|||||||
}
|
}
|
||||||
const auto t2 = n == tl.end() ? GetLastTime() : (*n)->time;
|
const auto t2 = n == tl.end() ? GetLastTime() : (*n)->time;
|
||||||
const auto px2 = ( t2 - m_zvStart ) * pxns;
|
const auto px2 = ( t2 - m_zvStart ) * pxns;
|
||||||
if( px2 - px0 > MinVisSize && !( ns == LockState::Nothing || ( m_onlyContendedLocks && ns == LockState::HasLock ) ) && drawState != ns ) break;
|
|
||||||
if( px2 - px1 > MinVisSize ) break;
|
if( px2 - px1 > MinVisSize ) break;
|
||||||
|
if( drawState != ns && px2 - px0 > MinVisSize && !( ns == LockState::Nothing || ( m_onlyContendedLocks && ns == LockState::HasLock ) ) ) break;
|
||||||
t1 = t2;
|
t1 = t2;
|
||||||
tx0 = px1;
|
tx0 = px1;
|
||||||
px1 = px2;
|
px1 = px2;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user