balancedPerformance

fun balancedPerformance(base: MTMapOptions = MTMapOptions()): MTMapOptions

Returns a new MTMapOptions based on base with balanced performance defaults.

Keeps crisper rendering by using a higher pixel ratio.

Applied overrides:

  • pixelRatio = base.pixelRatio ?: 1.5 (sharper than 1.0)

  • shouldRefreshExpiredTiles = false

  • cancelPendingTileRequestsWhileZooming = true

  • maxTileCacheZoomLevels = 4.0 (if unset)

  • crossSourceCollisionsAreEnabled = false

  • eventLevel = ESSENTIAL (per-frame events opt-in)

  • highFrequencyEventThrottleMs = 150 (when ALL is enabled)