diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 021c4939..31c4a9e1 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -897,7 +897,7 @@ bool View::DrawImpl() if( m_zoomAnim.active ) { - m_zoomAnim.progress += io.DeltaTime * m_zoomAnim.lenMod; + m_zoomAnim.progress += io.DeltaTime * 3.33f; if( m_zoomAnim.progress >= 1.f ) { m_zoomAnim.active = false; @@ -8938,11 +8938,6 @@ void View::ZoomToRange( int64_t start, int64_t end ) m_zoomAnim.end0 = m_zvEnd; m_zoomAnim.end1 = end; m_zoomAnim.progress = 0; - - const auto d0 = double( m_zoomAnim.end0 - m_zoomAnim.start0 ); - const auto d1 = double( m_zoomAnim.end1 - m_zoomAnim.start1 ); - const auto diff = d0>d1 ? d0/d1 : d1/d0; - m_zoomAnim.lenMod = 10.0 / log10( diff ); } void View::ZoomToPrevFrame() diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 4534f1cc..37c4c3bc 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -33,7 +33,6 @@ class View int64_t start0, start1; int64_t end0, end1; double progress; - double lenMod; }; struct Region