From 003bed573cf760357b2f130c66d499afee7b284e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 10 Nov 2019 17:20:55 +0100 Subject: [PATCH] Use ThreadData cache in zone validation. --- server/TracyWorker.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 49a972fe..a1fe7d77 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -3714,7 +3714,8 @@ void Worker::FrameImageTwiceFailure() void Worker::ProcessZoneValidation( const QueueZoneValidation& ev ) { - auto td = NoticeThread( m_threadCtx ); + auto td = m_threadCtxData; + if( !td ) td = m_threadCtxData = NoticeThread( m_threadCtx ); td->nextZoneId = ev.id; }