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.

Core and iOS bindings fight over in memory tile cache size #8039

Closed

Description

@jfirebaugh

This code in source_impl.cpp sets the tile size based on the viewport size, zoom range, and source tile size. It will be executed whenever updateTiles is called, i.e. whenever the camera changes. This calculation was recently tuned (#7739) to produce better results.

This code in the iOS bindings includes several other factors, but it does not include the tuning factors introduced in #7739. macOS and Android have similar code.

We need to have a single source of truth for calculating tile size. Since this is an internal implementation detail of the core implementation, it's best handled there. If environment specific factors like total memory size need to be taken into account -- and it's not clear to me that they do -- then that should be done by having core make calls out to a platform-provided API, like we do for timers, image IO, etc.

Activity

  1. added
    Core
    iOS
    performance
    on Feb 13, 2017
  2. added
    macOS
    Android
    on Apr 13, 2017
  3. self-assigned this
    on Jun 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AndroidCoreiOSmacOSperformance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions