mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Condense jump arrows, depending on max depth of jump graph.
This commit is contained in:
parent
33e5e07629
commit
11258fab73
@ -230,7 +230,11 @@ constexpr float JumpArrowBase = 9;
|
|||||||
|
|
||||||
float SourceView::CalcJumpSeparation( float scale )
|
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user