mapbox / mapbox/mapbox-gl-js

Possible corruption of pattern for a few frames

Open
#10,322 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Described by @rf- in https://github.com/mapbox/mapbox-gl-js/issues/10033#issuecomment-714664765.

It's also worth noting that, when zooming in and out a bunch on any of these examples (the last one, on the newest Mapbox with literal step values, is probably the most relevant), the texture often renders incorrectly and then fixes itself on the next zoom-level transition.

Example of corrupted rendering:
image

Example of correct rendering at the same zoom level:
image

I don't know whether this is related, but it's characteristic of a bunch of random rendering glitches I've run into when trying to find workarounds to allow us to continue rendering consistently-scaled textures like this.

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.

Research direction

Start by reproducing the corruption from the examples referenced in issue #10033, repeatedly zooming through the affected levels and comparing the incorrect and corrected renders. Trace the texture-rendering path involved by the reproduction; done means the pattern remains correct across the reported zoom-level transitions.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.