From 765561de81706bc6d1ad43734991ccc080452bc7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 5 Nov 2021 01:13:24 +0100 Subject: [PATCH] Serialize continuous frame events. --- client/TracyProfiler.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/TracyProfiler.hpp b/client/TracyProfiler.hpp index e56d782f..42c7038d 100644 --- a/client/TracyProfiler.hpp +++ b/client/TracyProfiler.hpp @@ -226,10 +226,11 @@ public: #ifdef TRACY_ON_DEMAND if( !GetProfiler().IsConnected() ) return; #endif - TracyLfqPrepare( QueueType::FrameMarkMsg ); + auto item = QueueSerial(); + MemWrite( &item->hdr.type, QueueType::FrameMarkMsg ); MemWrite( &item->frameMark.time, GetTime() ); MemWrite( &item->frameMark.name, uint64_t( name ) ); - TracyLfqCommit; + QueueSerialFinish(); } static tracy_force_inline void SendFrameMark( const char* name, QueueType type )