From d56f44a22086f07a0e9844ef7b25f8ac1467978a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 12 Nov 2017 01:53:03 +0100 Subject: [PATCH] Remove zone block split on color change. While this makes the collapsed block color variation nonexistent, it also enables proper optimization of rendering. --- server/TracyView.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index f5b7f1f2..c593461b 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2247,8 +2247,6 @@ int View::DrawZoneLevel( const Vector& vec, bool hover, double pxns, { ++it; if( it == zitend ) break; - auto& srcloc2 = GetSourceLocation( (*it)->srcloc ); - if( srcloc.color != srcloc2.color ) break; const auto nend = GetZoneEnd( **it ); const auto pxnext = ( nend - m_zvStart ) * pxns; if( pxnext - px1 >= MinVisSize * 2 ) break; @@ -2445,8 +2443,6 @@ int View::DrawGpuZoneLevel( const Vector& vec, bool hover, double pxn { ++it; if( it == zitend ) break; - auto& srcloc2 = GetSourceLocation( (*it)->srcloc ); - if( srcloc.color != srcloc2.color ) break; const auto nend = GetZoneEnd( **it ); const auto pxnext = ( nend - m_zvStart ) * pxns; if( pxnext - px1 >= MinVisSize * 2 ) break;