mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-08 22:29:48 +00:00
Further as-needed compression of jump graph.
This commit is contained in:
@@ -231,7 +231,9 @@ constexpr float JumpArrowBase = 9;
|
||||
float SourceView::CalcJumpSeparation( float scale )
|
||||
{
|
||||
float jsb = JumpSeparationBase;
|
||||
if( m_maxJumpLevel > 45 ) jsb -= 3;
|
||||
if( m_maxJumpLevel > 75 ) jsb -= 5;
|
||||
else if( m_maxJumpLevel > 60 ) jsb -= 4;
|
||||
else if( m_maxJumpLevel > 45 ) jsb -= 3;
|
||||
else if( m_maxJumpLevel > 30 ) jsb -= 2;
|
||||
else if( m_maxJumpLevel > 15 ) jsb -= 1;
|
||||
return round( jsb * scale );
|
||||
|
||||
Reference in New Issue
Block a user