Repository navigation
Optimize visible coordinates retrieval - #6998
Merged
Merged
Conversation
ChrisLoer
reviewed
Jul 20, 2018
| if (sourceCache) { | ||
| draw.debug(this, sourceCache, sourceCache.getVisibleCoordinates()); | ||
| for (const id in sourceCaches) { | ||
| draw.debug(this, sourceCaches[id], coordsAscending[id]); |
Contributor
There was a problem hiding this comment.
It doesn't look like any behavior changes here, but it got me thinking -- would it be better/more consistent if we drew debug tile boundaries as the union of tiles in all source caches?
Member
Author
There was a problem hiding this comment.
We used to draw debug boundaries for all source caches, but I felt it looked very confusing with multiple sources. You can try it but I think it's more useful to have clear, legible boundaries for at least one source.
ChrisLoer
approved these changes
Jul 20, 2018
ChrisLoer
left a comment
Contributor
There was a problem hiding this comment.
👍 These look like very sensible changes to me. I tried playing around with the code locally to look for situations where non-symbol layers might have become dependent on the symbol sorting but couldn't think of anything.
mourner
force-pushed
the
optimize-painter-coords
branch
from
July 23, 2018 07:13
69abb86 to
b9a00dd
Compare
Member
Author
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Simplifies and significantly optimizes visible coordinates retrieval. A part of my performance push for fixing #6643. Contains two independent changes (please rebase instead of squashing):
Combined, on a test case from #6643, the PR makes retrieving coordinates 3 times faster — on a single fly animation profile, down from 700ms (21.8% of
_render) to 230ms (7.8%).Launch Checklist
write tests for all new functionalityalready covereddocument any changes to public APIs