From 888d2b06ec95514aea02fa36569d9c84b3b2fa31 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Tue, 20 Aug 2019 04:35:51 -0400 Subject: speed up fading when zooming even more And a linear adjustment seems to make more sense. --- src/mbgl/text/placement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/text/placement.cpp b/src/mbgl/text/placement.cpp index 5e0d04cc41..9f9d948b94 100644 --- a/src/mbgl/text/placement.cpp +++ b/src/mbgl/text/placement.cpp @@ -942,7 +942,7 @@ float Placement::zoomAdjustment(const float zoom) const { // adjustment is used to reduce the fade duration for symbols while zooming out quickly. // It is also used to reduce the interval between placement calculations. Reducing the // interval between placements means collisions are discovered and eliminated sooner. - return std::max(0.0, 1.0 - std::pow(2.0, zoom - placementZoom)); + return std::max(0.0, (placementZoom - zoom) / 1.5); } bool Placement::hasTransitions(TimePoint now) const { -- cgit v1.2.1