mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Early exit in GpuCtx::Collect().
This commit is contained in:
parent
0cbeea97a2
commit
d0868b5004
@ -90,6 +90,8 @@ public:
|
|||||||
#ifndef TRACY_ON_DEMAND
|
#ifndef TRACY_ON_DEMAND
|
||||||
ZoneScopedC( Color::Red4 );
|
ZoneScopedC( Color::Red4 );
|
||||||
|
|
||||||
|
if( m_tail == m_head ) return;
|
||||||
|
|
||||||
auto start = m_tail;
|
auto start = m_tail;
|
||||||
auto end = m_head + QueryCount;
|
auto end = m_head + QueryCount;
|
||||||
auto cnt = ( end - start ) % QueryCount;
|
auto cnt = ( end - start ) % QueryCount;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user