diff --git a/generator/statistics.cpp b/generator/statistics.cpp index 2af867fe7d..e76ace432b 100644 --- a/generator/statistics.cpp +++ b/generator/statistics.cpp @@ -80,6 +80,7 @@ namespace stats m_info.m_inner[1].Add(innerStats.m_Strips); m_info.m_inner[2].Add(innerStats.m_Size); + // get geometry size for the best geometry (-1) FeatureType::geom_stat_t const geom = f.GetGeometrySize(-1); FeatureType::geom_stat_t const trg = f.GetTrianglesSize(-1); diff --git a/indexer/feature_loader.cpp b/indexer/feature_loader.cpp index 88dd5262cb..9b7d56d5d4 100644 --- a/indexer/feature_loader.cpp +++ b/indexer/feature_loader.cpp @@ -297,14 +297,14 @@ int LoaderCurrent::GetScaleIndex(int scale, offsets_t const & offsets) const switch (scale) { - case -2: - // Choose the worst existing geometry. + case -1: + // Choose the best existing geometry for the last visible scale. ind = count-1; while (ind >= 0 && offsets[ind] == kInvalidOffset) --ind; break; - case -1: - // Choose the best geometry for the last visible scale. + case -2: + // Choose the worst existing geometry for the first visible scale. ind = 0; while (ind < count && offsets[ind] == kInvalidOffset) ++ind; break; diff --git a/map/map_benchmark/features_loading.cpp b/map/map_benchmark/features_loading.cpp index 6d12cbd21c..6770bf340d 100644 --- a/map/map_benchmark/features_loading.cpp +++ b/map/map_benchmark/features_loading.cpp @@ -45,6 +45,7 @@ namespace m_timer.Reset(); + // Call this function to load feature's inner data and geometry. (void)ft.IsEmptyGeometry(m_scale); m_reading += m_timer.ElapsedSeconds();