1
votes

So I decided to finally put Unity Ads on my Android game. I tried to build it on Windows platform and found no problem (FPS is fine) But when I rebuilt it for Android, my FPS scaled down to 30+, what just happened? I didn't put anything but integrating the Unity Ads so this time I just comment out the Ads that initializes the ads.

void InitializeAds(){
    StartCoroutine(ShowAdWhenReady());
}


IEnumerator ShowAdWhenReady(){
    while(!Advertisement.IsReady()){
        yield return null;
    }
    Advertisement.Show();
}

In hopes that the FPS will go back to normal. But heck when I recompiled the APK and installed it on my phone the FPS still around 30+ FPS :/

Any help regarding this? I'm certain my game has good frame rate before I put the ads so I know there must be some kind of bugs on the plugin.

By the way, I invoked the InitializedAds on the Start method.

Thanks!

UPDATE:

I installed Unity Remote from Google Play to see if it's also going to have same low FPS but its NORMAL. So I recompiled the current Unity project, installed on my phone, FPS still SUCKS. This is so straaange T.T

1
30+ is pretty good for mobile devices. No panic. :)David
But I can literally see now the chugging of my game play. It's a racing game and you can see that my players are snapping. Any person that would play my game would probably uninstall it the first they see the animations sucks :/Jim
If you are sure that the FPS is 30+, you generally will not see such chunky issues. See this Link to see if you can detect any difference in 30 vs 60 fps.David
Well I'm not entirely sure (sorry about that) but this time you can literally see and notice how my players move. It's really FLICKING.Jim
Have you tried forcing the game to run at 30fps? Our racer used to chug and that was down to inconsistent fps not low fps, once we lowered the frame cap it was a much smoother experience for the playerDavid Long

1 Answers

0
votes

Please try this for making FPS higher in your game,

Application.targetFrameRate = 60;

I guess, your problem will solved using this line.