Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] look for loaded parent tiles in cache #4595

Merged
merged 1 commit into from
Apr 15, 2016
Merged

Conversation

ansis
Copy link
Contributor

@ansis ansis commented Apr 4, 2016

fix #4047

port mapbox/mapbox-gl-js#2158

When the required tiles aren't loaded yet it tries to find parent tiles that area loaded that a cover the area. It used to just look for parents in the set of previously rendered tiles. There are many cases where the parents aren't in that set but they are in the cache.

This reduces the amount of the viewport not covered by tiles. It makes tile loading look a lot faster.

It helps a lot when you:

zoom in and the pan around
zoom in quickly and then zoom out more slowly

👀 @jfirebaugh

@jfirebaugh jfirebaugh merged commit 7036266 into master Apr 15, 2016
@jfirebaugh jfirebaugh deleted the tile-cache-loading branch April 15, 2016 20:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

port looking for parent tiles in cache
2 participants