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 optimization: how deep to lookup for parent for fade #9062

Closed
wants to merge 1 commit into from

Commits on Dec 4, 2019

  1. Raster optimization: how deep to lookup for parent for fade

    Raster optimization: how deep to lookup for parent for fade
    
    Avoid sequential lookup from current zoom all the way to zoom level 0 as it affects performance.
    
    Do the same approach as used in SourceCache.update when calculating retained raster tiles `const minCoveringZoom = Math.max(idealZ - SourceCache.maxOverzooming, sourceCache.getSource().minzoom);`.
    
    If layer.paint.get('raster-fade-duration') is 0, no need to calculate parent since it is anyway ignored in getFadeValues.
    astojilj committed Dec 4, 2019
    Configuration menu
    Copy the full SHA
    4444192 View commit details
    Browse the repository at this point in the history