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

incremental parsing #163

Closed
Closed

Description

@kkaefer

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.

refs #158

Activity

  1. incanus commented on Apr 28, 2014

    @incanus
    Contributor

    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.

  2. incanus commented on May 20, 2014

    @incanus
    Contributor

    How likely do you think this is to happen for WWDC @kkaefer?

  3. kkaefer commented on May 21, 2014

    @kkaefer
    MemberAuthor

    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).

  4. ansis commented on May 21, 2014

    @ansis
    Contributor

    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

  5. kkaefer commented on May 21, 2014

    @kkaefer
    MemberAuthor

    @ansis not sure I follow. This ticket is about incremental parsing. Why would that affect clipping?

  6. ansis commented on May 26, 2014

    @ansis
    Contributor

    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

  7. self-assigned this
    on Apr 24, 2015
  8. tmpsantos commented on Apr 24, 2015

    @tmpsantos
    Contributor

    #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).

  9. jfirebaugh commented on Jun 24, 2016

    @jfirebaugh
    Contributor

    No current plans to pursue this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    performance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions