From c65d524725e57d82d326c02d96f71aed30f55576 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 10 Nov 2019 01:59:20 +0100 Subject: [PATCH] Magic vectors in GPU zone info window. --- server/TracyView.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index c1374c53..99cee840 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6601,7 +6601,15 @@ void View::DrawGpuInfoWindow() { const auto td = ctx->threadData.size() == 1 ? ctx->threadData.begin() : ctx->threadData.find( m_worker.DecompressThread( ev.Thread() ) ); assert( td != ctx->threadData.end() ); - const auto begin = td->second.timeline.front()->GpuStart(); + int64_t begin; + if( td->second.timeline.is_magic() ) + { + begin = ((Vector*)&td->second.timeline)->front().GpuStart(); + } + else + { + begin = td->second.timeline.front()->GpuStart(); + } const auto drift = GpuDrift( ctx ); TextFocused( "Delay to execution:", TimeToString( AdjustGpuTime( ev.GpuStart(), begin, drift ) - ev.CpuStart() ) ); }