Add deferred events queue.

This commit is contained in:
Bartosz Taudul 2018-07-11 12:14:28 +02:00
parent c2659473fd
commit 52207f20b7
2 changed files with 4 additions and 0 deletions

View File

@ -201,6 +201,7 @@ Profiler::Profiler()
#ifdef TRACY_ON_DEMAND
, m_isConnected( false )
, m_frameCount( 0 )
, m_deferredQueue( 64*1024 )
#endif
{
assert( !s_instance );

View File

@ -396,6 +396,9 @@ private:
#ifdef TRACY_ON_DEMAND
std::atomic<bool> m_isConnected;
std::atomic<uint64_t> m_frameCount;
NonRecursiveBenaphore m_deferredLock;
FastVector<QueueItem> m_deferredQueue;
#endif
};