mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-14 04:01:48 +00:00
Add deferred events queue.
This commit is contained in:
parent
c2659473fd
commit
52207f20b7
@ -201,6 +201,7 @@ Profiler::Profiler()
|
|||||||
#ifdef TRACY_ON_DEMAND
|
#ifdef TRACY_ON_DEMAND
|
||||||
, m_isConnected( false )
|
, m_isConnected( false )
|
||||||
, m_frameCount( 0 )
|
, m_frameCount( 0 )
|
||||||
|
, m_deferredQueue( 64*1024 )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
assert( !s_instance );
|
assert( !s_instance );
|
||||||
|
@ -396,6 +396,9 @@ private:
|
|||||||
#ifdef TRACY_ON_DEMAND
|
#ifdef TRACY_ON_DEMAND
|
||||||
std::atomic<bool> m_isConnected;
|
std::atomic<bool> m_isConnected;
|
||||||
std::atomic<uint64_t> m_frameCount;
|
std::atomic<uint64_t> m_frameCount;
|
||||||
|
|
||||||
|
NonRecursiveBenaphore m_deferredLock;
|
||||||
|
FastVector<QueueItem> m_deferredQueue;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user