From e5710e6923f83acc8a9f030d85cda4646e659aae Mon Sep 17 00:00:00 2001 From: Kiryl Kaveryn Date: Thu, 10 Oct 2024 19:06:10 +0400 Subject: [PATCH] [drape] skip the track rendering iteration it nothing changes Signed-off-by: Kiryl Kaveryn --- drape_frontend/gps_track_renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drape_frontend/gps_track_renderer.cpp b/drape_frontend/gps_track_renderer.cpp index 8341af75dd..4d976d6a78 100644 --- a/drape_frontend/gps_track_renderer.cpp +++ b/drape_frontend/gps_track_renderer.cpp @@ -114,7 +114,7 @@ void GpsTrackRenderer::UpdatePoints(std::vector const & toAdd, m_pointsSpline.AddPoint(m_points[i].m_point); } - m_needUpdate = true; + m_needUpdate = wasChanged; } size_t GpsTrackRenderer::GetAvailablePointsCount() const