Ipod touch 2g lag on application.levelload

So I have created my iphone app and successfully implemented it on my ipod. However, it only seems to work well on the first level. When I program some action to call on the script "Application.LevelLoad" the new level that is loaded has much more lag when compared to when it is loaded when the game starts up. I have built two versions of my game. One where it loads the level first and when I complete it the menu (this works fine), and another that loads the menu first and when play game is clicked, the level is loaded (this version has a lot of lag).

Also, this lag only occurs when I put the game on my ipod, when I play my game on my computer, there is no lag either way.

How can I fix this and remove the lag? Thanks a lot.

***Edit: I just loaded my same game that had lag on my ipod touch 2g onto my dad's ipad. On the Ipad, it ran fine and without any glitches at all no matter how many times I reloaded the level.

1 Answer

1

Your issue is primarily one of memory constraints. The old iOS devices don't have much memory, and are slow in general. You can try optimizing, but it's probably not worth it. Apple doesn't support the devices anymore, as of iOS 4.3. You should consider taking the same approach.

If you want to optimize, take all the steps to reduce what's loading. The biggest difference you should get is from reducing texture resolution. Quality Settings will allow you to do this easily.

But why would it work fine on the first load and not on the second? Wouldn't it need memory to hold the menu screen even when it starts up?

–

That doesn't sound like anything you asked in your original question. I don't know what you're asking here.

–

never mind... I rebuilt it and now it works fine!

–