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.

Fix tile flickering #206

Closed
Closed

Description

@kkaefer

Sometimes I'm seeing flickering when we remove a tile, but don't have the new one here quite yet (i.e. not yet parsed and ready to be rendered).

Activity

  1. ansis commented on May 21, 2014

    @ansis
    Contributor

    I think this may be a clipping issue.

    Here's what the flickering looks like in five frames:

    0000001
    0000002
    0000003
    0000004
    0000005

    In the second frame you can see that the newly loaded top-right tile is being drawn outside its area, not inside (the yellow part). The edges around the yellow area have the higher-resolution new data from the new tile's padding. The same can be seen for the other tiles when they are first loaded.

    #222 also points to clipping problems

  2. kkaefer commented on May 21, 2014

    @kkaefer
    MemberAuthor

    Yeah, looks like it. Frame by frame analysis sounds pretty useful!

  3. kkaefer commented on May 27, 2014

    @kkaefer
    MemberAuthor

    It looks like there's something up with the clip IDs when zooming out. In particular, I captured this screenshot mid-transition:

    untitled

  4. kkaefer commented on May 27, 2014

    @kkaefer
    MemberAuthor

    This should be fixed. @ansis can you verify that these are gone?

  5. mourner commented on May 27, 2014

    @mourner
    Member

    @kkaefer much better now. No "yellow" flicker noticed. Although it seems to me that tiles are sometimes removed when not expected on zoom-out, causing some mild flickering.

  6. kkaefer commented on May 27, 2014

    @kkaefer
    MemberAuthor

    @mourner This is because the max_covering_zoom is set to 1 currently, meaning that it'll discard tiles if they're 1 zoom level too small. This is to avoid drawing too many overly detailed tiles. We should come up with other strategies to deal with that, e.g. LOD geometries or prerendered tile textures for very small zoom levels.

  7. ansis commented on May 30, 2014

    @ansis
    Contributor

    @kkaefer much better. I never see the background, but I'm still seeing a couple problems.

    It double draws some areas when loading new tiles. For example, hillshades flash darker when a parent tile isn't clipped to avoid its child. See #222.

    parent 00000061
    parent and child 00000070
    child 00000072

    The second problem is, sometimes when zooming it ends up missing a layer. This screenshot is a couple seconds after everything is done, not in the middle of everything loading. All the tiles are loaded and if you pan it fixes itself instantly.
    missing

  8. kkaefer commented on May 31, 2014

    @kkaefer
    MemberAuthor

    @ansis Young reported the second bug too, but I've never seen it myself on OS X/iOS.

  9. added a commit that references this issue on Aug 21, 2014
    863b457
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions