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 has been archived by the owner on Aug 8, 2023. It is now read-only.
In the example above there are 3 layers that rely on one geojson source - circle layer and 2 symbol layers. After clicking the button, one of the images that the top layer uses (garbage bin) is removed from the map and starts to trigger the image missing callback which dramatically impacts the rendering of all layers that are based on this source. Other layers and the render thread itself seem to not be impacted as panning and zooming are smooth.
Yeah... hmm. The callback gets fired every time a missing icon is needed. So generally this would happen once per tile load but for examples like this where the location is updated every frame I guess it would call every frame. And calling into the main thread is probably what adds this delay.
The render thread could keep track of which images it's already fired the callback for and skip them I think!
In the example above there are 3 layers that rely on one geojson source - circle layer and 2 symbol layers. After clicking the button, one of the images that the top layer uses (garbage bin) is removed from the map and starts to trigger the image missing callback which dramatically impacts the rendering of all layers that are based on this source. Other layers and the render thread itself seem to not be impacted as panning and zooming are smooth.
Bisection points to #14320 as well.
/cc @tobrun @ansis @chloekraw
The text was updated successfully, but these errors were encountered: