HELP!!!
My app is lagging really bad on certain devices. I’ve put tons of work and now this is the last obstacle I need to solve before publishing. It runs pretty well on iPad 2, but I have tested it on iPhone 4g, iPhone 3g, and Kindle Fire (original) and it lags really badly. Its at the point where its unplayable on these devices.
There’s isn’t really a memory leak I’ve been able to find or anything like that, and this game is simple enough that it seems strange that these devices can’t run it. Memory used is around 2 mb and texture memory used ranges between 20 and 30 mb. Seems to me like this is a very small amount of memory required. Even the 3g has 128 mb of RAM–shouldn’t that be way more than what is necessary???
There’s no point in posting my code–I have monitored memory usage pretty closely and I’m quite sure there’s not significant leaks. The game lags as soon as it starts too so it doesn’t seem like that’s the case. Also it runs perfectly fine on iPad 2 even after being on for a prolonged period of time. I just don’t understand what the problem is.
Any help would be much appreciated! I’ve spent countless hours trying to fix this but with no luck. I’ve resized a lot of my assets to lower resolutions–something I hate to do but I was willing to do it if it got rid of the lag. But nothing has helped. I just don’t understand why these devices can’t run this app–the memory usage seems within their limits but maybe I’m missing something. Do those memory readings seem high to you? Any advice would be super helpful.
Thanks in advanced for any help anyone can offer!!!