This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
Conversation
|
@tobrun, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ansis, @kkaefer and @brunoabinader to be potential reviewers. |
Member
|
There's already a variable called |
Member
Author
|
@kkaefer thank you for 👀 , will attempt to make it work with |
Member
Author
|
@kkaefer in f2b8339 I proposed an alternative solution. The underlying issue is that the following if check never returns true and thus never setting the previous time. if (zoomIndex != previousZoomIndex) {
previousZoomIndex = zoomIndex;
previousTime = now;
}In f2b8339 I'm setting the previousTime when the Do you feel this is a better approach? |
… issue that map initialised at zoom 0 keeps invalidating itself.
tobrun
force-pushed
the
6667-zoom-0-not-idle
branch
from
November 1, 2016 07:52
f2b8339 to
88c7c31
Compare
Member
Author
|
closing in favour of #6979 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6667.
This PR initialises
previousZoomIndexwith -1 instead of 0 inframe_history.cpp. Solves the issue thatpainter->needsAnimation()keeps on returning true when a map is initialised with the default camera location. This currently results in constantly rerendering the map.Below you can see it stops using cpu resources vs the before screenshot.
More information in #6667.
Review @kkaefer