add more optimalization

This commit is contained in:
2026-01-28 22:05:30 +01:00
parent d1314a1b32
commit 4263a7eff0
2 changed files with 5 additions and 4 deletions
@@ -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