You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
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
AndroidMapbox Maps SDK for AndroidCoreThe cross-platform C++ core, aka mbgliOSMapbox Maps SDK for iOSmacOSMapbox Maps SDK for macOSperformanceSpeed, stability, CPU usage, memory usage, or power usage
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.
AndroidMapbox Maps SDK for AndroidCoreThe cross-platform C++ core, aka mbgliOSMapbox Maps SDK for iOSmacOSMapbox Maps SDK for macOSperformanceSpeed, stability, CPU usage, memory usage, or power usage
Activity