I have a list which always displays 3 items using a custom list
renderer.  As items are added to this list, the last one in the list
is removed (FIFO Queue), and a DefaultListEffect is used to animate
incoming and outgoing items with a fade effect.

The problem is that after some time (~5000 items passed through this
list) the memory usage gets very very high, and if I profile the
application I can see that instances of my renderer are not being removed.

In order to solve this I attempted to create a factory that would
cache the tiles and reuse them and use that as my itemRenderer
instead, but unfortunately it appears that if I reuse a tile that has
already been used it doesn't show up at all.  I thought this was
probably due to the list effect setting it to invisible, height 0,
etc... so I attempted to reset all those settings before passing the
item from the factory to the list, but it still just isn't working
correctly.

Is there a way to reuse the renderers and still have them show up
properly to alleviate my memory leak? 

Reply via email to