Sergey Zapuhlyak
Sergey Zapuhlyak

Reputation: 49

Admob ads freezes my iOS game (SpriteKit)

I use Apple’s SpriteKit in my iOS game and I use admob ads. When admob is loading new ad my game is freezing. How to fix it?

Thank you!

Upvotes: 1

Views: 987

Answers (1)

Ilario
Ilario

Reputation: 6079

I also use admob in my app, I also noticed that when the banner appears there is a freeze of the scene for about one second..

but in my case I think it happened because I was the request of the banner while the scene was loading textures, so i solved moving the loadRequest after the load of textures.

in my initWithSize: i call a method that load the textures, at the end of this method i do:

[self performSelector:@selector(showBanner) withObject:nil afterDelay:1.5];

In this way I was able to avoid the problems involved in loading the banner, and so the scene does not freeze more,

try and let me know

Upvotes: 1

Related Questions