I am developing a ipad game using flash CS5. When I run it in flash or web browser, it run quite smoothly but when I published it into ipa file and run it on my own ipad, it became very very slow. Since my game has many stages and characters, the amount of symbols may up to more than 50. That makes the flash file more than 100mb (but the ipa is only 11mb) All of the symbols are exported in frame 1.
Therefore, I have some questions wish to understand:
1)if I used preloader and exports the symbols in frame 2, will my game run more smoothly? is one preloader when the game is loaded enough? or it is need for every game scenes?
2)Is there any other technique that a big game developed in Flash has to follow in order can be run in low configurations devices?
3)Why many other big game can run so smoothly although it contains a lot more characters and background than mine?
Thank you a lot for your help ^^
1) All the preloader will do is show your users that something is going on until the game starts. It will not affect game performance.
2) Yes: You have to optimize every calculation and every asset for small memory footprint and fast performance. Start here.
3) Because they spent a lot of time on 2)
On a side note: It is usually a good idea to have a main game loop, and do all the calculations in your game logic prior to a single rendering step, instead of having lots of independent timelines. In the rendering step, you can exclude and/or minimize all the efforts on objects that are out of sight, or not entirely visible.