I found that when I do cache and show ad than do cache again to load new ad and show it again… it just ads memory, it’s not freeing the old ads.
When I do cache once and than show it, it will not show any new banners, it’s always the same banner.
When it comes to inter I can’t display it twice… this break whole logic…
I think this is wrong. We should be able to always display new ad, interstitial, and we should be able to free it from memory.
So it should be like cache, show, hide, uncache, cache new one… so we free the old memory and load a new ad.
How this is working right now, because I don’t think it’s working as it should? @nite@pabitrapadhy can you please answer?
Cheers!
PS. Also initializing admob ads like 30-40 MB to memory, that’s a lot!
but how it should be used? it’s nor problem with caching it’s problem with uncashing!
And when it will be this new release because I can’t now release a game which will increase memory so much?
The problem is I’m doing cache, show, hide, cache new… show, hide…
So when I do second cache of the same ad it’s not freeing the first one.
If I don’t do new cache I can show the ad, but it’s always the old ad, it’s not changing and I also don’t know if it counts impressions than… but anyway I would like to have everytime new ad…
I understand but this is the last thing that is blocking me from release. And I planned the release on Monday. So for me this is crucial thing! I can’t wait 2 weeks for it.
@pabitrapadhy giving it a second thought all I’m asking is that to delete from memory ad that was already cached before new cache. It’s simple delete statement. Can you please make this a priority?
For me it goes above +50MB till 200MB even, than I just stopped checking further… I didn’t use sample js for it, but I’m doing the same thing. The problem is small banner is like 2mb of memory, when I do cache again the same banner it should free from memory the old one. Simple.
Anyway banner is 2mb so increase in time 20mb on your example is way to much.
so in a sdkbox sample you would do load banner, show banner, hide banner, load banner, show banner, hide banner, load… etc… and it will increase memory slowly. At least on JS version
Sometimes system free unused memory but still it’s not stable it’s just increasing with time.
I’ve tried to install sdkbox sample and run it, but it requires some prebuild cocos2d which isn’t there and the steps in descriptions don’t work. I think sample should have cocos2d libs in it, or this git command would download prebuild ios stuff. It should be download zip, run one command and it runs.
But in my project I’m using JS version so I assume it will work the same.
Yes I did that, but the path in project points to cocos2d-x-3.6-lib/prebuild/ios which isn’t there… when I remove that and point only to cocos2d-x-3.6-lib than I got some other error about including cocos2d lib…