Restore frame counting for on-demand mode.

This commit is contained in:
Bartosz Taudul 2019-06-09 15:23:01 +02:00
parent 50cda7720f
commit 4c2ff80ac8

View File

@ -143,6 +143,7 @@ public:
static tracy_force_inline void SendFrameMark( const char* name )
{
#ifdef TRACY_ON_DEMAND
if( !name ) GetProfiler().m_frameCount.fetch_add( 1, std::memory_order_relaxed );
if( !GetProfiler().IsConnected() ) return;
#endif
Magic magic;