mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 13:13:53 +00:00
Use lock ranges for early exclusion test.
This commit is contained in:
parent
67f14be6aa
commit
200621f952
@ -3135,9 +3135,10 @@ int View::DrawLocks( uint64_t tid, bool hover, double pxns, const ImVec2& wpos,
|
||||
|
||||
const auto offset = _offset + ostep * cnt;
|
||||
|
||||
const auto& range = lockmap.range[it->second];
|
||||
const auto& tl = lockmap.timeline;
|
||||
assert( !tl.empty() );
|
||||
if( tl.back()->time < m_zvStart )
|
||||
if( range.start > m_zvEnd || range.end < m_zvStart )
|
||||
{
|
||||
if( m_lockInfoWindow == v.first )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user