I have a very simple game app set at 60 fps and it runs very well on my Samsung Galaxy Nexus phone.
I recently added the admob plugin and required the corona ads library on my scene and noticed a few performance issues.
When the ad is initially requested, fps drops to 0 for 2 - 3 seconds
When the ad cycles (i.e. for a text ad it slides to the next text) it causes a noticeable frame rate drop which negatively affects the game play. Since admob ads cycle every couple seconds it is a big problem.
Have you all looked into the performance implications of your implementation of admob? What can I do to stop the frame rate drops?
I just picked up a Nexus 7 to create an Android version of my app, and similarly noticed a significant framerate drop when my AdMob ads are showing. I have it on a 35-second cycle (30 on, 5 off) and during the 5-second grace period, it’s back to being completely smooth like my iPad mini Retina (which shows no drop in performance regardless if the ads are on or off).
Can one of you pinpoint when this may have started occurring? For example, do you recall that it was not happening a month ago? Two months ago? We’re trying to get a better idea of when this popped up, as we don’t recall this being an issue in the past.
Thanks for the response Brent. For myself, I noticed the issue the first time a couple weeks ago; however, it was my first experience with the ads library (I’m pretty new to Corona) so I don’t know a time when it wasn’t doing this. Perhaps some of the others who have been developing with Corona longer could comment?
I’ve been getting the same problem with admob banner ads, game lags bad when they cycle (but sadly can’t say if this has or hasn’t been happening earlier in time) as I just now came back to Corona after seeing adMob is now available, so I hope you guys find a way to fix it
Thanks for the continued input. We just tried running a basic sample on the newer Nexus 7 and we didn’t see any issues. So, to start getting this issue more “focused”, we’re going to need more help from you, including:
A basic sample project, if you can submit one.
The specific devices that it’s occurring on (and please be as specific as possible).
Regarding #2, thanks to those who have already mentioned which devices. So far we have:
— HTC One
— Samsung Galaxy Duo
— Nexus 7 (but which one, early or late?)
— Samsung Galaxy Nexus (is this a specific model? There are just so many Android phones…)
Any iOS devices at all? Or is this entirely happening on Android devices?
I saw this on a Sony Xperia Z. It slows the game down every time the ad cycles, its like everything slows down for a short period and then speeds up again.
I will try and get a hold of others to try it out on other devices as well. With this game I have only tried iAds on iphone and there is no issue on the 4s at least, but only tried with test ads since its not yet out on the appstore. I have a game with similar scrolling and such, but there is no problem with this on iphone and admob.
One thing I did different was using 60fps on the new game and 30fps on the other game… could that be a issue?
ok, so had some others trying it out as well and it happens on the other game too on Android. This is on samsung s4 and galaxy tab 8.9. But on iOS these games only lags slightly just when the ad loads and then its fine. So the issue seems to be on Android.
The samsung galaxy nexus is the name of the actual phone. I don’t have a sample project for you illustrating the issue… maybe I’ll be able to get something basic going from one of the corona sample physics apps…
You guys are welcome to try my Android version of Feather on Google Play, I was testing the app with the 2013 Nexus 7 on KitKat 4.4.2 and it lagged noticeably enough that I updated the metadata to ‘recommend purchasing the in-app unlock to remove the ads.’