From 4ba40016ce8a81733de1ce97177530797f12ad35 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 18 Nov 2017 00:56:05 +0100 Subject: [PATCH] Display GPU context appearance info. --- server/TracyView.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 0858f7c2..67b65de0 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2027,6 +2027,14 @@ void View::DrawZones() ImGui::BeginTooltip(); ImGui::Text( "%s", buf ); ImGui::Separator(); + if( !v->timeline.empty() ) + { + const auto t = v->timeline.front()->gpuStart; + if( t != std::numeric_limits::max() ) + { + ImGui::Text( "Appeared at %s", TimeToString( t - m_frames[0] ) ); + } + } ImGui::Text( "Thread: %s", GetThreadString( v->thread ) ); ImGui::Text( "Query accuracy bits: %i", v->accuracyBits ); ImGui::EndTooltip();