diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 30d41d03..26d51289 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1295,6 +1295,7 @@ void View::DrawFrames() } int i = 0, idx = 0; +#ifndef TRACY_NO_STATISTICS if( m_worker.AreSourceLocationZonesReady() && m_findZone.show && !m_findZone.match.empty() ) { auto& zoneData = m_worker.GetZonesForSourceLocation( m_findZone.match[m_findZone.selMatch] ); @@ -1399,6 +1400,7 @@ void View::DrawFrames() } } else +#endif { while( i < onScreen && m_vd.frameStart + idx < total ) {