1
0
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:
Bartosz Taudul 2019-03-16 02:32:23 +01:00
parent 67f14be6aa
commit 200621f952

View File

@ -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 )
{