Thanks, my game setup is like this:
there are prisoners inside a circle. The circle is made up of rocks.
In the game there are about 100 prisoners and about 240 rocks making up the wall.
Prisoner has animation: 6 frame, 100x100 pixels each.
Rock does not have any animation and 44x44 pixels.
Rock has solid behavior and prisoner has bullet behavior so they constantly move inside the prison but bounce off when they hit the wall. It is crucial that i have about 100 prisoners.
i tried just using 4 large long rocks for walls, reducing instance count by 240 but the game was still very slow.
I think the issue is expotential growth of collision check as # of instances grow in the game. I am not sure how i can optimize this. I am using box collider. All my prisoners are in one layer and rocks are in another layer so if i could somehow skip collision check between prisoners and only detect collision between prisoner and wall, i think i can make it faster.
On my android test device, Galaxy S4, i get about 20 fps and on my iphone, i get about 50 fps.
I tried phonegap and inel xdk and verified that WebGL is being used.
Thanks