-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
mapbox-gl-js version: latest
Question
When the camera is pitched beyond ~45 degrees and you orbit the camera, you end up with an almost-constant unloading & loading of the same tiles. It seems like the system is fairly aggressive in removing tiles that are out of view. For a top-down slippy map that makes sense, but in the case of the 3D map with rotation & pitch, it's extremely likely that nearby tiles behind the camera will be seen again. This pruning results in tiles near the camera being unloaded/reloaded a lot.
In a system where the camera is rotating frequently, for example following a moving object, this produces a lot of unnecessary / duplicative network requests and janky map behavior.
Is it possible somehow to configure the system to be keep more tiles in memory, for example to keep all tiles nearby the camera in memory even if they are out of view?
Steps to reproduce:
- Load a mapbox scene with 3D terrain
- Configure to allow rotation/pitch
- With the camera pitched to >45deg, rotate in increments of >=90deg.
- Observe that the area outside the camera frustrum keeps unloading.