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.

Never show blank spots #1626

Closed
Closed

Description

@kkaefer

When zooming out, or panning aggressively, we're often showing blank screens because tiles haven't loaded or parsed yet. We should lazily keep tiles in cache that are a couple of zoom levels lower so we can show it immediately when the user zooms or pans.

Activity

  1. friedbunny commented on May 22, 2015

    @friedbunny
    Contributor

    This is one of the major perceptual shortcomings between MBGL and other map libraries. 👍

  2. 1ec5 commented on May 22, 2015

    @1ec5
    Contributor

    As seen in #119 (comment), mapbox-gl-js keeps low-resolution tiles around to cover aggressive panning (as Google Maps does).

  3. added
    performance
    on May 23, 2015
  4. kristfal commented on May 29, 2015

    @kristfal

    Hacked in this by duplicating a source in the stylesheet, set maxzoom and minzoom = 5 for that source and created a simple 'background' style from the source. Worked well and adds a lot to the user experience, so this feature is definitely great.

    Not sure how flexible you want this, but defining the zoom level (or zoom level difference between current and 'low-detailed' zoom) where MBGL would fetch low-detailed tiles from could be very useful. For instance, showing very grainy highways from z6 at z13 reduces the overall quality feeling of the map. Fetching low-detailed data from a 'cleaner' zoom level alleviates this. Since a lot of your users have custom styles/data, I'd assume there is no perfect universal level to pull low-detailed data from.

  5. incanus commented on May 30, 2015

    @incanus
    Contributor

    This should be happening as of #1281, right? (in-memory parsed tile cache)

    This should be independent of zoom or pan and just keep recent tiles.

    Or this something more tuned like adjusting a bias for different zooms versus adjacent pans?

  6. jfirebaugh commented on Jun 1, 2015

    @jfirebaugh
    Contributor

    Or this something more tuned like adjusting a bias for different zooms versus adjacent pans?

    Yes, this is about changing the cache retention strategy to preserve low-z tiles specifically.

  7. self-assigned this
    on Jun 30, 2015
  8. incanus commented on Jul 30, 2015

    @incanus
    Contributor

    Related: #119

  9. tmpsantos commented on Jan 15, 2017

    @tmpsantos
    Contributor

    I started this one. The approach is to make the prefetch configurable:

    • disabled
    • dynamic: will prefetch at least N zoom levels down from the current zoom level.
    • fixed: will prefetch always from the N zoom level.
  10. added
    Core
    on May 30, 2017
  11. 1ec5 commented on Jul 7, 2017

    @1ec5
    Contributor

    Tracking tail work in #9437 for Android and #9438 for iOS and macOS.

    @tmpsantos, should we keep this issue open until we address #7026, per this to-do? Also, is this setting disabled by default? Should the SDKs enable it by default? Until the default behavior is to prefetch tiles, I’m not sure we should close this issue.

  12. tmpsantos commented on Jul 11, 2017

    @tmpsantos
    Contributor

    should we keep this issue open until we address #7026, per this to-do?

    We should keep this open until the label flickering is fixed (there is a labeling sprint coming that should address that).

    The current behavior is "enabled by default", but it will only work for raster. For vector behavior remains the same as before regardless if prefetch is enabled or not.

  13. reopened this on Jul 13, 2017
  14. added
    archived
    on Nov 5, 2018
  15. stale commented on Dec 1, 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

Labels

Corearchivedperformancerendering

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions