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 has been archived by the owner on Aug 8, 2023. It is now read-only.
The actual network and database operations that are done by GL core do not happen on the main thread though. They are confined to the "DefaultFileSource" thread.
I should have been more specific, the status updates are occurring on the main thread. These updates happen rapidly and would be nice to move into a sperate thread were I can then control how often we actually send status updates to the main thread. Say every time x amount of tiles are downloaded, the background thread can notify the main thread rather than the main thread receiving a status update every time a new tile is downloaded.
@cammace In #11284 we take a batched approach in storing tiles to the offline database, the notifications delivered to the main thread would be once per batch (now fixed at 64 tiles). Would this suit your needs?
I think in general, sense of the progress made is important here, but not necessarily at the granularity it has now.
Right now, we currently don't allow downloading offline regions on seperate threads, see https://github.com/mapbox/mapbox-gl-native/blob/master/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineManager.java#L137 We should allow passing in any threads looper.
cc: @mapbox/maps-android
The text was updated successfully, but these errors were encountered: