diff options
author | Bartosz Taudul <bartosz.taudul@game-lion.com> | 2018-07-11 18:10:34 +0300 |
---|---|---|
committer | Bartosz Taudul <bartosz.taudul@game-lion.com> | 2018-07-11 18:10:34 +0300 |
commit | d0868b5004f4801e7c6027f1cb86041fe6e9ef14 (patch) | |
tree | dd8f919c4dcf7445e69a74ae195b9a42b4063eac /TracyOpenGL.hpp | |
parent | 0cbeea97a290cc1d263a2d7ed78e9cee6117c72b (diff) |
Early exit in GpuCtx::Collect().
Diffstat (limited to 'TracyOpenGL.hpp')
-rw-r--r-- | TracyOpenGL.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/TracyOpenGL.hpp b/TracyOpenGL.hpp index 8306ae37..ea7d3be5 100644 --- a/TracyOpenGL.hpp +++ b/TracyOpenGL.hpp @@ -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; |