Serialize continuous frame events.

This commit is contained in:
Bartosz Taudul 2021-11-05 01:13:24 +01:00
parent 0427904d4a
commit 765561de81
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -226,10 +226,11 @@ public:
#ifdef TRACY_ON_DEMAND #ifdef TRACY_ON_DEMAND
if( !GetProfiler().IsConnected() ) return; if( !GetProfiler().IsConnected() ) return;
#endif #endif
TracyLfqPrepare( QueueType::FrameMarkMsg ); auto item = QueueSerial();
MemWrite( &item->hdr.type, QueueType::FrameMarkMsg );
MemWrite( &item->frameMark.time, GetTime() ); MemWrite( &item->frameMark.time, GetTime() );
MemWrite( &item->frameMark.name, uint64_t( name ) ); MemWrite( &item->frameMark.name, uint64_t( name ) );
TracyLfqCommit; QueueSerialFinish();
} }
static tracy_force_inline void SendFrameMark( const char* name, QueueType type ) static tracy_force_inline void SendFrameMark( const char* name, QueueType type )