Quantcast
Channel: Questions in topic: "ads"
Viewing all articles
Browse latest Browse all 1416

why is my game lagging when using Unity Ads?

$
0
0
When my game starts the welcome screen has quite a few animations that play out. It was working fine until I implemented Unity Ads into my game. Now there is a noticeable lag when this bit of code executes: `Advertisement.Initialize ();`. It only lasts for a second but it is quite nasty. I tried putting the code in a co-routine and calling after the bulk of the heavy animations are completed but it still causes a considerable disruption to the remaining simple animations that are looping. I'm thinking about putting it inside of my "Earn Button" onClick event but then the user will have to wait for the ads to load up which can take up to 5 seconds in my experience. Is there a way I can call this code while the splash screen is loading? I am testing on a Samsung S5 if that helps.

Viewing all articles
Browse latest Browse all 1416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>