Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raster Flicker #2467

Closed
dflynn15 opened this issue Apr 19, 2016 · 11 comments
Closed

Raster Flicker #2467

dflynn15 opened this issue Apr 19, 2016 · 11 comments
Assignees
Labels

Comments

@dflynn15
Copy link

This is more or less just a question. I have been trying to track down a raster "flickering" that happens whenever the Map is animated using pitch and noticed that there was a previous issue and PR that in theory should have fixed this. Is there a possibility this has been re-introduced by the upgrades to 0.17.0

If there is anything else I need to provide let me know!

mapbox-gl-js version: 0.17.0

Steps to Trigger Behavior

  1. Go to this CodePen here
  2. Click the "Fly In" button
  3. Click the "Fly out" button after animation
  4. You should notice the raster flickering on the top of the map
@ansis
Copy link
Contributor

ansis commented Apr 19, 2016

I'm not seeing any raster layers in the codepen so I think this is different than #2212

Which layers are flickering? lines? fills? text?

@dflynn15
Copy link
Author

Ah, I was wrong in the terminology. My bad 😭

It appears to be the map tiles (?). I do want to emphasize this is intermittent and best "found" on Chrome. Firefox seems to be quick clean 😬 You can de-prioritize this until I can get a consistent or reproducible screen capture for you 😞

@lucaswoj
Copy link
Contributor

Thanks for reporting @dflynn15!

In the name of keeping our issue queue lean and mean, I'm going to close this until we can get a consistent or reproducible screen capture. Please re-open once you have one!

@mtirwin
Copy link
Contributor

mtirwin commented May 5, 2016

I'm able to reproduce a raster flicker using production mapbox.mapbox-satellite, mapbox-gl 0.18.0, Chrome 50.0.2661.86, on current OSX.

Flicker behavior happens consistently on fly-to events with with pitch 0 and > 0 in this demo, and this screen vid catches the issue (can't get a gif with high enough frame rate) in the upper left after the initial fly-to event.

@mtirwin mtirwin reopened this May 5, 2016
@mtirwin
Copy link
Contributor

mtirwin commented May 9, 2016

Much better capture with this video:

https://www.dropbox.com/s/efywvcw1594zs1r/flicker2.mov?dl=0

@kkaefer
Copy link
Member

kkaefer commented May 18, 2016

I'm seeing this as well, and it's pretty jarring.

@mapsam
Copy link
Contributor

mapsam commented Nov 10, 2016

Seeing this as well, it's not jarring per se, but definitely there - I'm really only seeing it when zooming out.

mapbox-gl-js-satellite-flicker

@mourner
Copy link
Member

mourner commented Nov 29, 2016

When parent tile fades over child tile, we retain both through _coveredTiles set, but then we exclude covered tiles so that they’re not rendered for vector tile sources; however we need to render both for raster tile sources. Not sure at what point this broke, but we need to make logic differences between tile retention for raster tiles and for vector tiles more explicit for a proper fix.

@andrewharvey
Copy link
Collaborator

Is the flicker and the fade from black when zooming out the same issue?

Looking at https://github.com/mapbox/mapbox-gl-js/blob/master/js/render/draw_raster.js#L51 it looks like the tile fading will fade from the parent tile if it exists but doesn't fade from the child tiles when zooming out. It seems like the fix is to include the 4 child tiles if they exist in the fade.

@scottgerring
Copy link

Any movement on this?

@lucaswoj
Copy link
Contributor

Not yet @scottgerring. We will be sure to hit this before our February release.

@anandthakker anandthakker assigned anandthakker and unassigned mourner Jan 20, 2017
anandthakker added a commit that referenced this issue Jan 24, 2017
* Make sure parent tiles are retained for fading

Closes #2467

* Add unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests