I searched for all internet questions about otimization and performance in 2D games and i found questions like overdraw and shader alpha blend / alpha test. I’m making a 2D game using 2D Toolkit and i tried so hard to obtain 60fps on iPad 2, and i got just 30fps. In my scene i have about 5 layers like parallax and some compressed textures which looks ugly. I tried every solution that i found and my game continues laggy. I don’t use any particles, but i have to use some special fx.
What makes a beautiful game, without affecting on performance?
Oh… and in the Asset Store there is a package called: Core Framework which includes a smooth 2D parallax scrolling scene with palm trees. Maybe a good starting point for you project.
Slow down your Fixed Timestep to much slower than 60fps in Edit - Project Settings - Time, but keep Application.targetFrameRate = 60.
If you have several layers with transparent full size images, watch your fill rate. Shut off layers for testing.
Keep Collision Detection = Discrete.
When running in debug mode from xCode, you can click on the framerate icon, and then on the framerate bar. This will show you 2 vertical bars about the CPU/GPU usage in milliseconds. Obviously, if those ms add up to slower than your frame rate, that spells trouble.