Support serialized queue for Lua messages.

This commit is contained in:
Bartosz Taudul 2021-10-10 15:55:22 +02:00
parent 082255f940
commit 9d89b84efd
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -383,11 +383,11 @@ static inline int LuaMessage( lua_State* L )
auto ptr = (char*)tracy_malloc( size );
memcpy( ptr, txt, size );
TracyLfqPrepare( QueueType::Message );
TracyQueuePrepare( QueueType::Message );
MemWrite( &item->messageFat.time, Profiler::GetTime() );
MemWrite( &item->messageFat.text, (uint64_t)ptr );
MemWrite( &item->messageFat.size, (uint16_t)size );
TracyLfqCommit;
TracyQueueCommit( messageFatThread );
return 0;
}