-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Implement removeSprite #2560
Comments
@tobrun I think to implement this, we will need reference counting in Sprite class to know when last marker with this icon is removed from the map |
I have implemented this my using a Remaining is to test then make a PR. |
@tobrun We are going to need to add a stress test similar to the bulk marker test for adding and removing a large number of sprites to ensure we correctly delete the sprites when they reach a zero ref count. So basically a lot of markers each with a large number of different sprites with varying amounts of duplicate icons. |
Hmm Core GL's |
Stack trace:
|
The problem: This makes it's way to Searching for @jfirebaugh has |
@ljbade I think your analysis is correct -- it's never been used outside of tests. |
@jfirebaugh Do you know roughly what is needed to fix this? I sort of understand SpriteAtlas but not completely. We don't need to erase the data from the texture do we? We can just leave it there and delete the sprite from the list? |
After chat with @jfirebaugh , going to punt on this until @kkaefer gets some eyes on this. Ideally an app can use Currently the For example, I can imagine an app that adds markers with sprites loaded from the Internet of user account avatars (think a find my friend sort of thing), it will keep creating new sprites, removing the old ones, but eventually you will hit a max texture size if you keep the app open for long enough. |
Not relevant anymore due to introduction of MarkerViews. A user can still use |
No description provided.
The text was updated successfully, but these errors were encountered: