AppLovin / AppLovin-MAX-Cordova

MIT License
11 stars 13 forks source link

100% CPU usage after app is paused #44

Open DashiellP opened 11 months ago

DashiellP commented 11 months ago

MAX Plugin Version

1.1.2

Cordova Version

12.0.0

Device/Platform Info

Android

Current Behavior

When the app is paused (either by being minimized or viewing an ad) the framerate drops to < 10 and the CPU usage goes up to 100%. The Chrome inspector shows that the lag is caused by these huge paint events.

image

The lag can be prevented by not initializing the AppLovin SDK or by disabling all third-party ad network SDK's. It persists until the app is restarted (refreshing in the inspector does not fix it). There are no errors in logcat or the JS console.

Expected Behavior

No response

How to Reproduce

Additional Info

No response

thomasmso commented 11 months ago

Thanks for raising this issue @DashiellP. If you de-integrate all adapters, leaving you with AppLovin ads only - is it still reproducible? Consistently?

When FPS drops while viewing an ad, is the ad UX fine or is it lagging/stuttering as well?

DashiellP commented 11 months ago

De-integrating all other adapters does solve it, but including even one other adapter reintroduces the problem.

The ad video FPS seems fine, but the FPS drop in-app is consistent.

thomasmso commented 11 months ago

Would you be able to provide an APK with all adapters de-integrated, and one with it integrated? I want to reproduce this issue locally.

We can work closer together if you email me at thomas.so@applovin.com.

thomasmso commented 10 months ago

@DashiellP - Could you try the latest Cordova plugin? v1.1.4.

github-actions[bot] commented 3 days ago

This issue is stale because it has been open for 30 days with no activity.