RenderOptions
public struct RenderOptions : Equatable
Used to configure rendering-specific capabilities of the MapView
-
The preferred frame rate at which the map view is rendered.
The default value for this property is
.normal, which will adaptively set the preferred frame rate based on the capability of the user’s device to maintain a smooth experience.See Also
CADisplayLink.preferredFramesPerSecondDeclaration
Swift
public var preferredFramesPerSecond: PreferredFPS -
A Boolean value indicating whether the map should prefetch tiles.
When this property is set to
true, the map view prefetches tiles designed for a low zoom level and displays them until receiving more detailed tiles for the current zoom level. The prefetched tiles typically contain simplified versions of each shape, improving the map view’s perceived performance.The default value of this property is
true.Declaration
Swift
public var prefetchesTiles: Bool -
A Boolean value that indicates whether the underlying
CAMetalLayerof theMapViewpresents its content using a CoreAnimation transactionBy default, this is
falseresulting in the output of a rendering pass being displayed on theCAMetalLayeras quickly as possible (and asynchronously). This typically results in the fastest rendering performance.If, however, the
MapViewis overlaid with aUIKitelement which must be pinned to a particular lat-long, then setting this totruewill result in better synchronization and less jitter.Declaration
Swift
public var presentsWithTransaction: Bool
RenderOptions Structure Reference