From bf12704b0fef6c87f6106d3e4b51d19f8e4d3942 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 24 Sep 2017 15:59:53 +0200 Subject: [PATCH] Increase queue preallocation size. --- client/TracyProfiler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 4e0d90b5..41a451b8 100755 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -29,7 +29,9 @@ namespace tracy { -static moodycamel::ConcurrentQueue s_queue( QueueItemSize * 64 * 1024 ); +enum { QueuePrealloc = 256 * 1024 }; + +static moodycamel::ConcurrentQueue s_queue( QueueItemSize * QueuePrealloc ); static moodycamel::ProducerToken& GetToken() {