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

Overzoom cached/offline tiles #123

Closed
incanus opened this issue Mar 27, 2014 · 3 comments
Closed

Overzoom cached/offline tiles #123

incanus opened this issue Mar 27, 2014 · 3 comments
Labels
feature performance Speed, stability, CPU usage, memory usage, or power usage

Comments

@incanus
Copy link
Contributor

incanus commented Mar 27, 2014

Something that would boost perceived performance, at least on raster, is to consider a TileData::state::cached somewhere between invalid and loaded. It's odd because it's logic branching, not serial, but with this we could consider loading and parsing/decoding for use in child/parent tile scenarios.

To put it another way, this wouldn't require the user to have ever zoomed to a parent or child tile zoom level in the current run of the app in order to make use of those tiles for drawing. If I launch the app at z8 but have one or more z7 tiles cached, they could get drawn until I get all the z8 tiles I need for optimum resolution.

There's a tradeoff between spending time pulling these from cache vs. spending resources in getting the z8 tiles, but it might be worthwhile.

@kkaefer
Copy link
Contributor

kkaefer commented Apr 2, 2014

Yeah, we should definitely add a caching layer, but I'm not sure how it should look. Right now, I'm thinking of adding one in the "tile load" step, e.g. a sort of URL/file cache that caches the downloaded tiles. The other cache layer that I want to introduce, is caching the tessellation for a downloaded tile. This will have a huge impact on reparsing speed because this is where we spend 80-90% of our time on.

@incanus
Copy link
Contributor Author

incanus commented Apr 2, 2014

I'm not sure we're talking about the same thing. I'm talking about consulting whatever disk-based caching we do have and drawing those to screen as parent/child tiles even if those zooms haven't been visited in the current session.

@kkaefer kkaefer mentioned this issue Aug 22, 2014
@kkaefer kkaefer changed the title consider cached status Load other cached tiles until actual tiles are available Aug 27, 2014
@tmpsantos tmpsantos self-assigned this Jun 30, 2015
@jfirebaugh jfirebaugh changed the title Load other cached tiles until actual tiles are available Overzoom cached/offline tiles Apr 1, 2016
@tmpsantos tmpsantos removed their assignment Apr 21, 2016
@jfirebaugh
Copy link
Contributor

Implemented in #5143.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature performance Speed, stability, CPU usage, memory usage, or power usage
Projects
None yet
Development

No branches or pull requests

4 participants