AppLovin / AppLovin-MAX-Unity-Plugin

127 stars 35 forks source link

AppLovinInitialize slows down editor due to obsolete directory check #447

Open JohannesPaivinen opened 2 weeks ago

JohannesPaivinen commented 2 weeks ago

MAX Plugin Version

12.6.1

Unity Version

2022.3.41f1

Device/Platform Info

Android

Current Behavior

In Unity project with this plugin, AppLovinInitialize.cs will check if there are obsolete directories to delete (ObsoleteFileExportPathsToDelete).

It does this check EVERY TIME when starting to play the game and the check takes 500 ms.

It may not sound like much, but when there are many plugins with this kind of issues, it all adds up and slows down the iteration of the entire team. Can you fix it to be more efficient, e.g. by storing flag in settings when the migration has been done?

Expected Behavior

AppLovinInitialize will not check for obsolete paths on every domain reload.

How to Reproduce

Just press play in Unity editor in any project with AppLovin plugin.

Reproducible in the demo app?

Yes

Additional Info

No response

JonathanLiuApp commented 2 weeks ago

Hi @JohannesPaivinen, we will add a change for this in the next plugin update.