mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Restore frame counting for on-demand mode.
This commit is contained in:
parent
50cda7720f
commit
4c2ff80ac8
@ -143,6 +143,7 @@ public:
|
|||||||
static tracy_force_inline void SendFrameMark( const char* name )
|
static tracy_force_inline void SendFrameMark( const char* name )
|
||||||
{
|
{
|
||||||
#ifdef TRACY_ON_DEMAND
|
#ifdef TRACY_ON_DEMAND
|
||||||
|
if( !name ) GetProfiler().m_frameCount.fetch_add( 1, std::memory_order_relaxed );
|
||||||
if( !GetProfiler().IsConnected() ) return;
|
if( !GetProfiler().IsConnected() ) return;
|
||||||
#endif
|
#endif
|
||||||
Magic magic;
|
Magic magic;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user