marzika / Snapprefs

A project which offer enhanced features for Snapchat throught the Xposed Framework.
GNU General Public License v3.0
272 stars 82 forks source link

Memory issue with many custom filters #325

Closed ConnectDevelopers closed 7 years ago

ConnectDevelopers commented 7 years ago

Expected Behavior

The pre-edit screen should not freeze for 10 seconds with 15 custom filters.

Current Behavior

When for example: 15 custom filters are being loaded on the pre-edit screen, it takes about 10 seconds to load the edit screen and it takes less than 0.5 without custom filters. Threading issue??

Possible Solution

Use different thread to load the filters?

Steps to Reproduce (for bugs)

Download or make multiple filters, use them and take a picture and you should see the pre-edit freeze.

Context

It's not very userfriendly to use the custom filters since it takes too long to load.

Your Environment

marzika commented 7 years ago

Please check if this commits fixes it for you: https://github.com/marzika/Snapprefs/commit/35e00a0f123e22105e0b4fe03a5242af2fa2a045