Skip to content

Commit e3eead7

Browse files
committed
Further as-needed compression of jump graph.
1 parent 11258fa commit e3eead7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎server/TracySourceView.cpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ constexpr float JumpArrowBase = 9;
231231
float SourceView::CalcJumpSeparation( float scale )
232232
{
233233
float jsb = JumpSeparationBase;
234-
if( m_maxJumpLevel > 45 ) jsb -= 3;
234+
if( m_maxJumpLevel > 75 ) jsb -= 5;
235+
else if( m_maxJumpLevel > 60 ) jsb -= 4;
236+
else if( m_maxJumpLevel > 45 ) jsb -= 3;
235237
else if( m_maxJumpLevel > 30 ) jsb -= 2;
236238
else if( m_maxJumpLevel > 15 ) jsb -= 1;
237239
return round( jsb * scale );

0 commit comments

Comments
 (0)