mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-13 03:41:48 +00:00
Better lock combining.
This commit is contained in:
parent
3e0b1f0ad5
commit
958e472751
@ -2355,7 +2355,11 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
|
|||||||
{
|
{
|
||||||
n = GetNextLockEvent( n, vend, ns, ns, thread );
|
n = GetNextLockEvent( n, vend, ns, ns, thread );
|
||||||
}
|
}
|
||||||
if( n == next ) break;
|
if( n >= vend ) break;
|
||||||
|
if( n == next )
|
||||||
|
{
|
||||||
|
n = GetNextLockEvent( n, vend, ns, ns, thread );
|
||||||
|
}
|
||||||
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 ) break;
|
if( px2 - px0 > MinVisSize ) break;
|
||||||
|
Loading…
Reference in New Issue
Block a user