summaryrefslogtreecommitdiff
path: root/include/mbgl/util
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2017-01-15 11:27:52 -0500
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-07-07 14:28:52 +0300
commit407fbc70b1dc6dab6b7aa5a4b9c57b4e08906c79 (patch)
tree1914348d4136449842822f092eaff7d589861e35 /include/mbgl/util
parent2876db72f2d235a02e5670329c4f8dcb2a65a8ed (diff)
downloadqtlocation-mapboxgl-407fbc70b1dc6dab6b7aa5a4b9c57b4e08906c79.tar.gz
[core] Prefetch low resolution tiles
Diffstat (limited to 'include/mbgl/util')
-rw-r--r--include/mbgl/util/constants.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/util/constants.hpp b/include/mbgl/util/constants.hpp
index 14aaa752bc..c2250c6f2e 100644
--- a/include/mbgl/util/constants.hpp
+++ b/include/mbgl/util/constants.hpp
@@ -38,6 +38,8 @@ constexpr double MAX_ZOOM = 25.5;
constexpr float MIN_ZOOM_F = MIN_ZOOM;
constexpr float MAX_ZOOM_F = MAX_ZOOM;
+constexpr uint8_t DEFAULT_PREFETCH_ZOOM_DELTA = 4;
+
constexpr uint64_t DEFAULT_MAX_CACHE_SIZE = 50 * 1024 * 1024;
constexpr Duration DEFAULT_TRANSITION_DURATION = Milliseconds(300);