Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug High memory usage playing rewarded ads on iOS

Discussion in 'Unity Mediation' started by GoldenFoxLLC, Nov 16, 2021.

  1. GoldenFoxLLC

    GoldenFoxLLC

    Joined:
    Nov 28, 2019
    Posts:
    7
    I'm getting more than 2x memory usage when displaying rewarded ads on iOS. Goes from 1GB of memory usage up to 2.5-3GBs when the ad is showing.

    Is this the expected behavior?

    Unity 2021.1.23f1, Mediation 0.2.1-preview.2
     
    Last edited: Nov 16, 2021
  2. jcGrenier

    jcGrenier

    Unity Technologies

    Joined:
    Feb 23, 2021
    Posts:
    115
    Hi @GoldenFoxLLC ,
    Sorry for taking so long to reply, we have started investigating possible memory issues but so far we have not found anything that would explain your issue. Could you tell us which ad network(s) this happens with?
     
  3. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    107
  4. jcGrenier

    jcGrenier

    Unity Technologies

    Joined:
    Feb 23, 2021
    Posts:
    115
    Hi @hexdecc ,
    Could you clarify something for me? Did you experience this issue using unity Mediation, or Unity Ads alone? This information would help us know where to focus our efforts.

    Thanks in advance :)
     
  5. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    107
    I dont use meditation,also I dont use Google Admob but somehow it show me google ads,

    google ads is not installed, also I perceived that it is not related with google ads.it just crashed also unity ads with high memory.
     
  6. jcGrenier

    jcGrenier

    Unity Technologies

    Joined:
    Feb 23, 2021
    Posts:
    115
    Thank you for the clarification, we will check with the UnityAds team.
    As for google ads, here is the answer from our engineering manager:

    Cheers!
     
  7. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    107
    @jcGrenier
    Nice to hear that!
    then can you close this topic? or delete.
    https://forum.unity.com/threads/unity-ads-shows-google-ad.1244002/


    i am continue debugging, if something I discover I will write down here.
     
  8. jcGrenier

    jcGrenier

    Unity Technologies

    Joined:
    Feb 23, 2021
    Posts:
    115
    Unfortunately I am but a simple developer, and not an almighty forum admin ;)
    I will see If I can find someone who can.

    Cheers!
     
  9. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    107
    Hello bro,i saw that you login today forum,
    can u just help me how can fix that? because I cannot release my new app version.
     
  10. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    107
    I have solved the problem by disabling camera when video is active and making camera reactive after video is finish.
     
  11. jcGrenier

    jcGrenier

    Unity Technologies

    Joined:
    Feb 23, 2021
    Posts:
    115
    Hi hexdecc,
    Just to confirm my understanding, you mean the in-game camera, not the physical phone camera, correct?
     
  12. hexdecc

    hexdecc

    Joined:
    Oct 24, 2014
    Posts:
    107
    yeah game camera.it is very ridiculous.i dont know what is the reason.
     
  13. jcGrenier

    jcGrenier

    Unity Technologies

    Joined:
    Feb 23, 2021
    Posts:
    115
    Thank you for the info, and glad you found a workaround for now :)