2D puzzle game like tetris using physics on iPhone?

hi, my name is doucyoung.

today, I tested some kind of a puzzle game.

this game look likes tetris. blocks are falling down and touch and disappear. another falling.

I used physic for realistic falling.

64blocks were using for game(8X8). I made each blocks with Box on Maya.
blocks were having rigid body, joint and collider. and I locked some axis.

it worked fine on unity iphone.
but on iphone. it was too slow to play.

how can I optimize my game for more better performance?

how can I make 2d physic game with Unity3d iphone with reasonable performance?

It’s hard to say specifically what the current bottleneck is without digging into the project more but I suspect that you have several.

First off, you can tweak how often the physics gets updated. I don’t recall the exact setting location and I’m not on my mac right now, but a “physics timestep” search on the forums should get you what you need.

Second, are your blocks using different materials? How many draw calls are you getting? With a large amount of objects not being batched, draw calls can quickly add up.

Third, how does your code function? Do you have each block running an update loop or do you have one manager that delegates information out to the individual blocks? Having 50 blocks onscreen and each one running its own update loop can be quite expensive.

I am going out on a very short limb here.

How many draw calls do you have?

just 3 draw call.( enviroment - 2call, 64 blocks - 1call)

:?

I think I missed something. but I don’t know what it is.

Turn on profiling in your generated xcode and run the project. It should tell you where the app is spending it’s time.