Skip to content

lazy load 3d models, bug requests model file multiple times, making the model flashing when source updating #13545

@ANALKH-DY

Description

@ANALKH-DY

mapbox-gl-js version

v3.14.0

Browser and version

Microsoft Edge v139.0.3405.125

Expected behavior

the model should be requested only one time, when model loaded, it appears on the map

Actual behavior

yes, there are many point features on the map and i update their position per animation frame.
after v3.12, mapboxgl supports lazy loading models for performance. that's a good change.
but now it makes model flashing because of too much load request

Image Image

i don't know if my code's problem, but i can say it never happens before updating mapboxgl version from v3.9 to v3.14

Link to the demonstration

No response

Steps to trigger the unexpected behavior

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions