mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00: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 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( drawState != ns && px2 - px0 > MinVisSize && !( ns == LockState::Nothing || ( m_onlyContendedLocks && ns == LockState::HasLock ) ) ) break;
|
||||
t1 = t2;
|
||||
tx0 = px1;
|
||||
px1 = px2;
|
||||
|
Loading…
Reference in New Issue
Block a user