add more optimalization
This commit is contained in:
@@ -56,8 +56,9 @@ import android.os.StrictMode
|
||||
|
||||
|
||||
// Thread pool for tile downloading to prevent blocking UI thread
|
||||
private val tileDownloadExecutor = Executors.newFixedThreadPool(4)
|
||||
|
||||
private val tileDownloadExecutor = Executors.newFixedThreadPool(
|
||||
(Runtime.getRuntime().availableProcessors() - 3).coerceAtLeast(1)
|
||||
)
|
||||
// MapState configuration for OpenStreetMap
|
||||
// Max zoom level is 18, tile size is 256x256
|
||||
// At zoom level 18, there are 2^18 = 262144 tiles in each dimension
|
||||
|
||||
Reference in New Issue
Block a user