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

Disable implicit animation of user dot bounds #3683

Merged
merged 1 commit into from
Mar 10, 2016

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Jan 25, 2016

This PR prevents Core Animation from implicitly animating changes to the user dot’s bounds. Therefore, the user dot no longer lags perceptibly when panning, zooming, or rotating the map.

We can similarly disable implicit animation of the accuracy circle’s size (#2045). However, that’ll have to happen in a different PR, because the accuracy circle’s animation is still useful for when the accuracy itself changes.

Fixes #2972 and gets us halfway towards #1125.

/cc @friedbunny @kkaefer

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS performance Speed, stability, CPU usage, memory usage, or power usage labels Jan 25, 2016
@1ec5 1ec5 self-assigned this Jan 25, 2016
@1ec5 1ec5 added this to the ios-v3.2.0 milestone Jan 25, 2016
@friedbunny
Copy link
Contributor

👍 in theory, but I'm still struggling to perceive much/any practical effect.

@1ec5 1ec5 mentioned this pull request Jan 26, 2016
@1ec5 1ec5 modified the milestones: ios-v3.3.0, ios-v3.2.0 Mar 3, 2016
@1ec5 1ec5 force-pushed the 1ec5-user-dot-inaction-1125 branch 2 times, most recently from 42f1c66 to e6ebeee Compare March 10, 2016 19:31
@1ec5 1ec5 force-pushed the 1ec5-user-dot-inaction-1125 branch from e6ebeee to 29688e2 Compare March 10, 2016 20:03
@1ec5 1ec5 merged commit 29688e2 into master Mar 10, 2016
@1ec5 1ec5 removed the in progress label Mar 10, 2016
@1ec5 1ec5 deleted the 1ec5-user-dot-inaction-1125 branch March 10, 2016 21:51
@1ec5 1ec5 mentioned this pull request Apr 18, 2016
4 tasks
boundsj added a commit that referenced this pull request Apr 29, 2016
Like #3683, this
change prevents Core Animation from implicitly animating changes to the
annotation's bounds. This is done to reduce lag during map interactions
like pan and drag.
boundsj added a commit that referenced this pull request May 6, 2016
Like #3683, this
change prevents Core Animation from implicitly animating changes to the
annotation's bounds. This is done to reduce lag during map interactions
like pan and drag.
boundsj added a commit that referenced this pull request May 11, 2016
Like #3683, this
change prevents Core Animation from implicitly animating changes to the
annotation's bounds. This is done to reduce lag during map interactions
like pan and drag.
@1ec5
Copy link
Contributor Author

1ec5 commented Jun 5, 2016

For future reference, the behavior I disabled here is documented in “CALayer Animatable Properties” as a quarter-second basic animation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS performance Speed, stability, CPU usage, memory usage, or power usage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants