Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After started loadAd in a MAAdView, there are consequences of main thread occupation which caused UI laggy. #282

Open
lovecactus opened this issue Dec 21, 2023 · 8 comments
Assignees
Labels
enhancement New feature or request stale This isue has been inactive

Comments

@lovecactus
Copy link

Feature Description

We're using the latest AppLovin SDK, with a long list of mediations. However, we noted that after we started to load ads using MAAdView, there was a significant load of the main thread (which eventually caused UI laggy because of the main thread occupation.).

As you can see in the screenshot of instrument logging:

Screenshot 2023-12-21 at 16 15 56

A very high percentage of main thread resources were being used for ALMediationAdapterWrapper. It's not one time but several times in consequences, within seconds, which leads to consequences of slightly, however, noticeable UI freezes.

Is there anything we could do to avoid this?

@lovecactus lovecactus added the enhancement New feature or request label Dec 21, 2023
@NanaAmoah
Copy link
Contributor

Hi @lovecactus we're currently investigating this and will share updates as they become available.

@lidorf-gurushots
Copy link

In our application we are dealing with the same issue.
Specifically with AppLovinMediationGoogleAdapter adapter that is causing a lot of issues when MERC implemented.
Also sometimes the app freezes when initializing the MAAdView..(.main is stuck for unknown reason)

@lovecactus
Copy link
Author

Hi @lovecactus we're currently investigating this and will share updates as they become available.

Hi @NanaAmoah

Any update? 😄

@NanaAmoah
Copy link
Contributor

@lovecactus @lidorf-gurushots Apologies for the delay here, we're still investigating the issue and will share updates when we have more details

@dillydallygames
Copy link

I'm experiencing the same issue. I hope this gets fixed soon as I can't release to production with a laggy UI. IMHO, this is a critical bug which would undoubtedly lead to 1-star app reviews and upset my customers. Please make this issue a priority.

@Gargo
Copy link

Gargo commented Jan 26, 2024

@NanaAmoah it is not an "enchancement". It is a bug which causes simulator lags. Even my macbook pro with m2 and 8Gb RAM (which should be enough powerful) has serious lags when I show just a small banner 375x50.

I also found out that calling ALSdk.shared()!.mediationProvider = "max" somehow replaces test ad with another one (and it improves performance)

@lovecactus
Copy link
Author

lovecactus commented Feb 19, 2024

@NanaAmoah
Hi, any update on this lag performance issue or a way to walk around? Our app is still affected by this issue.
Thanks!

Copy link

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

@github-actions github-actions bot added the stale This isue has been inactive label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale This isue has been inactive
Projects
None yet
Development

No branches or pull requests

5 participants