Yasic / ParticleTextView

一个用粒子动画显示文字的 Android 自定义 View
1.32k stars 197 forks source link

Memory Spike When Changing Text #8

Closed rayliverified closed 6 years ago

rayliverified commented 7 years ago

When text is cycled, particles are recreated which causes a huge memory spike. particle text view memory spikes The issue here I believe is that the old particles are not purged from memory before new particles are created. I have isolated the problem to the memory limit. When running on my emulator with 32 GB of memory, no issue appears. However, when running on actual hardware (i.e. 2GB of memory), the application freezes for a few seconds. In the current state, the feature is unusable. Any ideas?

rayliverified commented 6 years ago

Closing due to inactivity.