add more optimalization
This commit is contained in:
parent
d1314a1b32
commit
4263a7eff0
4
.idea/deploymentTargetSelector.xml
generated
4
.idea/deploymentTargetSelector.xml
generated
@ -4,10 +4,10 @@
|
|||||||
<selectionStates>
|
<selectionStates>
|
||||||
<SelectionState runConfigName="app">
|
<SelectionState runConfigName="app">
|
||||||
<option name="selectionMode" value="DROPDOWN" />
|
<option name="selectionMode" value="DROPDOWN" />
|
||||||
<DropdownSelection timestamp="2026-01-28T17:49:25.357991153Z">
|
<DropdownSelection timestamp="2026-01-28T21:00:38.307279245Z">
|
||||||
<Target type="DEFAULT_BOOT">
|
<Target type="DEFAULT_BOOT">
|
||||||
<handle>
|
<handle>
|
||||||
<DeviceId pluginId="LocalEmulator" identifier="path=/home/lukas/.config/.android/avd/Medium_Phone_OSS.avd" />
|
<DeviceId pluginId="PhysicalDevice" identifier="serial=BS98317AA1341400032" />
|
||||||
</handle>
|
</handle>
|
||||||
</Target>
|
</Target>
|
||||||
</DropdownSelection>
|
</DropdownSelection>
|
||||||
|
|||||||
@ -56,8 +56,9 @@ import android.os.StrictMode
|
|||||||
|
|
||||||
|
|
||||||
// Thread pool for tile downloading to prevent blocking UI thread
|
// 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
|
// MapState configuration for OpenStreetMap
|
||||||
// Max zoom level is 18, tile size is 256x256
|
// Max zoom level is 18, tile size is 256x256
|
||||||
// At zoom level 18, there are 2^18 = 262144 tiles in each dimension
|
// At zoom level 18, there are 2^18 = 262144 tiles in each dimension
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user