Slow FPS and Google AdMob?
Hi folks,
I run into this issue.
I have a fairly simple 2d app with only UI objects in it. I have added Google AdMob SDK and added a banner ad.
When starting up the app on my iPhone, everything works just fine running in 60fps, but when setting the app in pause (opening another app or just minimizing) and then open the app again the fps acts weird and stays at 40 fps?
I have this in my init script:
private static int target = 45;
void Start()
{
#if UNITY_IOS || UNITY_ANDROID
Environment.SetEnvironmentVariable("MONO_REFLECTION_SERIALIZER", "yes");
#endif
QualitySettings.vSyncCount = 0;
}
void Update () {
if(target != Application.targetFrameRate){
Application.targetFrameRate = target;
}
}
Hope someone can help me with this, thus I am starting to go crazy... :-)
Thanks in advance
Comment
Your answer
Follow this Question
Related Questions
UI Camera Question 2 Answers
How to move the UI down when an ad banner appears 0 Answers
How do I resize the UI vertically to make room for banner ads? 0 Answers
OnMouseDown raycast doesnt match UI crosshair 1 Answer
Canvas Rendering time is high 0 Answers