Early exit in GpuCtx::Collect().

This commit is contained in:
Bartosz Taudul 2018-07-11 17:10:34 +02:00
parent 0cbeea97a2
commit d0868b5004

View File

@ -90,6 +90,8 @@ public:
#ifndef TRACY_ON_DEMAND
ZoneScopedC( Color::Red4 );
if( m_tail == m_head ) return;
auto start = m_tail;
auto end = m_head + QueryCount;
auto cnt = ( end - start ) % QueryCount;