From 5227bc35497892771e43ec9676f11c252ea27753 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 12 Feb 2020 00:34:09 +0100 Subject: [PATCH] Read all GPU zone variables at once. --- server/TracyWorker.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index ee7f64e5..4c51e503 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -5294,10 +5294,9 @@ void Worker::ReadTimeline( FileRead& f, Vector>& _vec, uint6 int64_t tcpu, tgpu; int16_t srcloc; - f.Read3( tcpu, tgpu, srcloc ); - zone->SetSrcLoc( srcloc ); uint16_t thread; - f.Read2( zone->callstack, thread ); + f.Read5( tcpu, tgpu, srcloc, zone->callstack, thread ); + zone->SetSrcLoc( srcloc ); zone->SetThread( thread ); refTime += tcpu; refGpuTime += tgpu;