From 5246098c791783e50cc16b49e35555ccdc05ccf7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 30 Nov 2017 15:31:31 +0100 Subject: [PATCH] GPU context hiding plumbing. --- server/TracyEvent.hpp | 1 + server/TracyView.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/server/TracyEvent.hpp b/server/TracyEvent.hpp index c39e428c..e3860d5c 100644 --- a/server/TracyEvent.hpp +++ b/server/TracyEvent.hpp @@ -168,6 +168,7 @@ struct GpuCtxData Vector resync; uint8_t accuracyBits; bool showFull; + bool visible; }; struct LockMap diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 4eaf20da..afa03654 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -357,6 +357,7 @@ View::View( FileRead& f ) f.Read( &ctx->count, sizeof( ctx->count ) ); ReadTimeline( f, ctx->timeline ); ctx->showFull = true; + ctx->visible = true; m_gpuData.push_back( ctx ); } @@ -851,6 +852,7 @@ void View::ProcessGpuNewContext( const QueueGpuNewContext& ev ) gpu->accuracyBits = ev.accuracyBits; gpu->count = 0; gpu->showFull = true; + gpu->visible = true; m_gpuData.push_back( gpu ); m_gpuCtxMap.emplace( ev.context, gpu ); } @@ -2167,6 +2169,7 @@ void View::DrawZones() for( size_t i=0; ivisible ) continue; draw->AddLine( wpos + ImVec2( 0, offset + ostep - 1 ), wpos + ImVec2( w, offset + ostep - 1 ), 0x33FFFFFF );