mapbox / mapbox/mapbox-gl-js

optimize projections with more precise tile cover

Open
#11,139 0 comments 1 reaction 2 assignees View on GitHub

@ansis is already working on this.

Since Nov 17, 2021.

bug :lady_beetle: performance :zap:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Non-mercator projections are slower to load than mercator at higher zoom levels. `winkelTripel` is roughly ~17% slower in our benchmarks. It looks like most of this is caused by [imprecise bounds checking](https://github.com/mapbox/mapbox-gl-js/blob/107a5256bebb4d06c6fb073618632d865e48e5b9/src/geo/transform.js#L747-L760), which leads to loading tiles that are entirely offscreen. This affects both loading and rendering performance.

Mercator maps are not affected by this.

![Screen Shot 2021-10-19 at 4 26 44 PM](https://user-images.githubusercontent.com/1421652/137985305-a0226557-48bb-48c3-b3b9-6e351bd60513.png)

cc @mourner

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.