2.0.2 vs 2.1a performance on iOS

Discuss issues specific to the Flash/AS3 port of Box2D
developer
Posts: 28
Joined: Sun May 24, 2009 6:43 pm

2.0.2 vs 2.1a performance on iOS

Postby developer » Sat Sep 01, 2012 7:55 am

Hi,

I see that the performance of 2.0.2 is better than 2.1a on iOS. My test consists of dropping six balls, all with groupIndex=-1 so they don't collide with each other and with restitution .6, from the top of the screen to the bottom, which has a static body spanning the width of the screen. In 2.0.2, I get around 30 FPS when the balls are falling and when they hit the bottom and bounce. In 2.1a, when the balls hit the bottom and bounce, I get below 20 FPS and as low as 16 FPS.
Here's the step code for 2.0.2:
m_world.Step(1.0 / 30.0, 4);

and for 2.1a:
m_world.Step(1.0 / 30.0, 4, 2);

I guess this should result in the same or less iterations per step. The performance of 2.0.2 isn't good when I have more objects: I get below 20 FPS when I have 12 balls.

I want to try the Alchemy port next, but I've read conflicting reports on it's performance on iOS.

Thanks.

developer
Posts: 28
Joined: Sun May 24, 2009 6:43 pm

Re: 2.0.2 vs 2.1a performance on iOS

Postby developer » Wed Sep 05, 2012 10:05 pm

I was getting poor performance because I was not building using -ad-hoc or -app-store. 2.1a works great on iPod 4.


Return to “Flash”



Who is online

Users browsing this forum: No registered users and 3 guests