I have a problem with AdMob on Android. When an ad is displayed the FPS is dropping from 60\ to30.
Is anyone else experiencing this issue?
What should I do to fix this?
I have a problem with AdMob on Android. When an ad is displayed the FPS is dropping from 60\ to30.
Is anyone else experiencing this issue?
What should I do to fix this?
No problems here.
Are you by any chance outputting debug strings when you receive an ad in your handler/listener? Try commenting them out.
Or maybe it’s the way you create your ad, try this:-
try
{
adParams = new LinearLayout.LayoutParams(
getWindowManager().getDefaultDisplay().getWidth(),
-50);
// old admob:
//adView = new AdView(ArrowMania.this, AdSize.BANNER, "your pub id");
// New adMob (11th Aug v1.18 and on):
adView = new AdView(ArrowMania.this, AdSize.BANNER, "your pub id");
adView.setAdListener(ArrowMania.this);
request = new AdRequest();
if( DEBUG_LOG )
{
Log.d(TAG, "Setup for TEST ads. Set DEBUG_LOG to false to for release!!");
request.addTestDevice("your test device number, get from the logcat");
}
adView.loadAd(request);
addContentView(adView, adParams);
adView.setVisibility(View.INVISIBLE);
}
catch (Exception e)
{
}
The same thing happens with your code too.
BTW, I’m using Daniel Rákos’ AdMob extension for cocos2d-x:
http://rastergrid.com/blog/2013/03/admob-extension-for-cocos2d-x-android/
The only device I have is Samsung Galaxy Tab 2.
Attila Szilágyi wrote:
The same thing happens with your code too.
>
BTW, I’m using Daniel Rákos’ AdMob extension for cocos2d-x:
http://rastergrid.com/blog/2013/03/admob-extension-for-cocos2d-x-android/
>
The only device I have is Samsung Galaxy Tab 2.
Are you destroying and re-creating the AdMob instance every time you receive and ad (or re-creating to change and update the ad)? That would cause a slow down glitch too.
I have same problem, how to fix it?