You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
We should create the buckets for a tile incrementally, filling them/adding them as we go. This makes the app feel a little faster because you at least see something, e.g. you see all the streets, but not labels yet.
This would be great. It probably makes sense to do this bottom-to-top if that's not already the natural order in order to look best, but that could be a second refinement.
Not likely. Incremental parsing means that we have to think hard about how the buffers are organized; right now, we're e.g. using one elements buffer that is shared across all buckets and bucket types. That means that if we parse a fill, but have previously parsed all lines (and are attempting to render the line), we are going to modify the elements buffer again, and have to handle updates (e.g. using glBufferSubData).
This also really complicates clipping. Each layer would have a different set of tiles to render from.
Since (I think) it would not be possible to represent the different overlapping areas for a lot of layers with just 8 stencil bits, the clipping mask would need to be redrawn after each couple of layers. This is probably a performance issue (@kkaefer would know better). #220
Separating just text and non-text buckets is probably more realistic
If the incrementally parsed tiles replace previously loaded tiles, then as each layer from the new tile is parsed and displayed the same layer from the old tile has to be clipped. Different layers from the old overscaled tile may be clipped differently. Supporting different clippings for different layers is the same problem as supporting clipping for multiple sources #220. I don't think its possible to support overscaling this many different clippings with the current clipping approach. Just 8 stencil bits and testing with a mask and equal isn't enough without redrawing the stencil multiple times. It would be awesome if I was wrong about this though
Activity
incanus commentedon Apr 28, 2014
This would be great. It probably makes sense to do this bottom-to-top if that's not already the natural order in order to look best, but that could be a second refinement.
incanus commentedon May 20, 2014
How likely do you think this is to happen for WWDC @kkaefer?
kkaefer commentedon May 21, 2014
Not likely. Incremental parsing means that we have to think hard about how the buffers are organized; right now, we're e.g. using one elements buffer that is shared across all buckets and bucket types. That means that if we parse a fill, but have previously parsed all lines (and are attempting to render the line), we are going to modify the elements buffer again, and have to handle updates (e.g. using
glBufferSubData).ansis commentedon May 21, 2014
This also really complicates clipping. Each layer would have a different set of tiles to render from.
Since (I think) it would not be possible to represent the different overlapping areas for a lot of layers with just 8 stencil bits, the clipping mask would need to be redrawn after each couple of layers. This is probably a performance issue (@kkaefer would know better). #220
Separating just text and non-text buckets is probably more realistic
kkaefer commentedon May 21, 2014
@ansis not sure I follow. This ticket is about incremental parsing. Why would that affect clipping?
ansis commentedon May 26, 2014
If the incrementally parsed tiles replace previously loaded tiles, then as each layer from the new tile is parsed and displayed the same layer from the old tile has to be clipped. Different layers from the old overscaled tile may be clipped differently. Supporting different clippings for different layers is the same problem as supporting clipping for multiple sources #220. I don't think its possible to support overscaling this many different clippings with the current clipping approach. Just 8 stencil bits and testing with a mask and equal isn't enough without redrawing the stencil multiple times. It would be awesome if I was wrong about this though
tmpsantos commentedon Apr 24, 2015
#1326 has the interesting side effect of making this possible (it will be my next step as soon as I get rid of the promises).
jfirebaugh commentedon Jun 24, 2016
No current plans to pursue this.