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

Prefetch destination tiles when animating a viewport change #2006

Closed

Description

@1ec5

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

Activity

  1. 1ec5 commented on Sep 14, 2015

    @1ec5
    ContributorAuthor

    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.

  2. added
    performance
    on Sep 14, 2015
  3. added
    Core
    on Feb 8, 2017
  4. added
    archived
    on Nov 15, 2018
  5. stale commented on Nov 24, 2018

    @stale

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Corearchivedperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions