Skip to content

sort renderable tiles by y and x to match -native - #5601

Merged
ansis merged 1 commit into
masterfrom
tile-sort-order
Nov 6, 2017
Merged

ansis merged 1 commit into
masterfrom
tile-sort-order

Conversation

@ansis

@ansis ansis commented Nov 6, 2017

Copy link
Copy Markdown
Contributor

This changes the tile sort order to match -native. This is important to make sure the render order of symbols that cross tile boundaries is the same in -native and -js.

This will let us fix symbol-spacing/line-close for the viewport collision pr in -native.

regressions/mapbox-gl-native#7357/expected.png changes. I think the new rendering is fine, but if we shouldn't change this I can change this so that only symbol rendering order is affected.

Launch Checklist

@ChrisLoer

@ansis
ansis requested review from ChrisLoer and jfirebaugh November 6, 2017 21:38
@ChrisLoer

Copy link
Copy Markdown
Contributor

This looks good to me -- my one concern was that compareKeyZoom ends up getting called pretty heavily, so the more expensive calculation might make a difference. I ran the "paint" and "layout" benchmarks several times and saw this branch as between 53% and 71% likely to be slower than master. I also ran a test on an animated full screen map with the Chrome javascript profiler running and saw getIds taking between .4-1% of CPU time on both branches. So.. seems fine.

@jfirebaugh
jfirebaugh deleted the tile-sort-order branch February 22, 2018 20:22
mourner added a commit that referenced this pull request Jul 20, 2018
#5601 introduced the sorting to match native, but in the latter, the fancy sorting is only used for symbol layers.
@mourner mourner mentioned this pull request Jul 20, 2018
5 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants