From 11258fab735a07dcdd444d6c65a58534c0f717db Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 19 Oct 2022 01:06:41 +0200 Subject: [PATCH] Condense jump arrows, depending on max depth of jump graph. --- server/TracySourceView.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index bd774901..74c3f402 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -230,7 +230,11 @@ constexpr float JumpArrowBase = 9; float SourceView::CalcJumpSeparation( float scale ) { - return round( JumpSeparationBase * scale ); + float jsb = JumpSeparationBase; + if( m_maxJumpLevel > 45 ) jsb -= 3; + else if( m_maxJumpLevel > 30 ) jsb -= 2; + else if( m_maxJumpLevel > 15 ) jsb -= 1; + return round( jsb * scale ); }