Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Map view is slow to respond to some gestures and fly animations #10266

@boundsj

Description

@boundsj

The panning / flyto slowness we've been observing on master and agua seems to be because of some underlying performance problem related to an internal framework method (_updateConstraintsAsNecessaryAndApplyLayoutFromEngine) to update constraints. We were exposed to this in #9995 by setting _scaleBar.translatesAutoresizingMaskIntoConstraints = NO;.

However, this was not actually a problem before the last merge but something about the rendering interface updates done back in b6d56ad trigger this problem and are driven by repeated calls to -[MGLScaleBar setMetersPerPoint:] in -[MGLMapView cameraIsChanging].

We see this problem now after the merge since all of the commits to trigger it are in place (there is no problem with the merge itself). The constant updates to the scale bar's frame triggered by the renderer / camera / gesture updates are just too much.

cc @frederoni @1ec5 @fabian-guerra @ivovandongen @lilykaiser

Metadata

Metadata

Assignees

Labels

bugiOSMapbox Maps SDK for iOSperformanceSpeed, stability, CPU usage, memory usage, or power usagerelease blockerBlocks the next final release

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions