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

Prefetch destination tiles when animating a viewport change #2006

Closed
1ec5 opened this issue Aug 6, 2015 · 2 comments
Closed

Prefetch destination tiles when animating a viewport change #2006

1ec5 opened this issue Aug 6, 2015 · 2 comments
Labels
archived Archived because of inactivity Core The cross-platform C++ core, aka mbgl performance Speed, stability, CPU usage, memory usage, or power usage

Comments

@1ec5
Copy link
Contributor

1ec5 commented Aug 6, 2015

When you animate a significant change to the map view's visible region, you always arrive at the destination before the destination tiles have loaded. mbgl should determine which tiles will be needed at the destination and prefetch them as soon as the animation begins.

/cc @kkaefer @incanus

@1ec5
Copy link
Contributor Author

1ec5 commented Sep 14, 2015

With the default animation duration of 300 ms, prefetching might not make a huge difference. But now you can specify a custom duration for -setCamera:withDuration:animationTimingFunction:, and doing so would make a lot of sense for a flyTo()-style animation – in that case, you’d definitely want to calculate which tiles matter and start loading them as soon as the animation begins, rather than on demand.

@1ec5 1ec5 added the performance Speed, stability, CPU usage, memory usage, or power usage label Sep 14, 2015
@incanus incanus added the P0 label Nov 4, 2015
@jfirebaugh jfirebaugh removed the P0 label Mar 24, 2016
@jfirebaugh jfirebaugh added the Core The cross-platform C++ core, aka mbgl label Feb 8, 2017
@stale stale bot added the archived Archived because of inactivity label Nov 15, 2018
@stale
Copy link

stale bot commented Nov 24, 2018

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Nov 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived Archived because of inactivity Core The cross-platform C++ core, aka mbgl performance Speed, stability, CPU usage, memory usage, or power usage
Projects
None yet
Development

No branches or pull requests

3 participants