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

Decrease the minimum pixel distance required to interpolate during camera animation #15073

Merged
merged 1 commit into from
Jul 9, 2019

Conversation

LukasPaczos
Copy link
Member

Closes #15072.

This PR reverts the required pixel distance to match what's been there before #9199, unless we'd like to split the target and zoom interpolation thresholds?

…ring camera animation

The changes introduced in #9199 changed the minimum required pixel distance between start and end points to >= 1px in order to interpolate, which in scenarios of big zoom changes and low pixel density can result in animation to the previous position and then a jump to the target.
@LukasPaczos LukasPaczos added the Core The cross-platform C++ core, aka mbgl label Jul 8, 2019
@LukasPaczos LukasPaczos added this to the release-picklejuice milestone Jul 8, 2019
@LukasPaczos LukasPaczos requested a review from ansis July 8, 2019 14:29
Copy link
Member

@tobrun tobrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seem to bring back the old logic which was changed to fix #8300. Is this no longer an issue?

@LukasPaczos
Copy link
Member Author

@tobrun I don't think it's going to reintroduce #8300, this reverts only a part of changes from #9199.

Copy link
Contributor

@ansis ansis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tobrun I don't think it's going to reintroduce #8300, this reverts only a part of changes from #9199.

Yep, I think the isfinite(...) might keep it from breaking but I'm not 100% sure. I originally added both approaches because I wasn't fully confident in either. Making this change should be ok but we need to keep an eye out for issues that might be caused by this.

@LukasPaczos LukasPaczos merged commit da8ed93 into master Jul 9, 2019
@LukasPaczos LukasPaczos deleted the lp-target-interpolation-15072 branch July 9, 2019 16:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No camera animation target interpolation for low pixel density
3 participants