Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Show parent tile XOR child tiles - #2482

Merged
kkaefer merged 1 commit into
masterfrom
2482-parent-xor-child-labels
Oct 12, 2015
Merged

kkaefer merged 1 commit into
masterfrom
2482-parent-xor-child-labels

Conversation

@kkaefer

@kkaefer kkaefer commented Oct 12, 2015

Copy link
Copy Markdown
Member

For labels, there are currently situations where we show a combinations of parent and child tiles when zooming in. Since labels aren't clipped by the stencil buffers, this results in duplicate labels being shown until all child tiles have loaded.

untitled

I think the easiest way to solve this issue is to never show a combination of parent and child tiles. This might mean that we have to wait some time until we show a new tile, but we only need to do this when we already have the parent tile, so there's at least something that we can show.

Likely, this will also allow us to significantly reduce the "stencil mask overflow" messages, since we don't need to compute distinct mask IDs for partially covered tiles.

Since label rendering isn't clipped, having a parent tile, and only a handful of child tiles loaded may result in some labels being rendered twice (from the parent tile, and the up to three child tiles that necessitate the parent tile remaining in the list). This patch makes sure that in one location, it only ever renders one set of labels, by favoring the parent tile until all required child tiles have been loaded.
@kkaefer kkaefer self-assigned this Oct 12, 2015
@kkaefer
kkaefer merged commit e3d9fb1 into master Oct 12, 2015
@kkaefer
kkaefer deleted the 2482-parent-xor-child-labels branch October 12, 2015 14:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant