WCK and iOS are now buddies!

Oh sorry man, I meant to say Flash proffessional has got a native way to package apps for the iphone, using an older version of the packager, it'll still give you that ipa file. BUT If you do it with the AIR 2.6 SDK, things should be faster, and you'll have access to things the native packager doesn't. Another issue was that using WCK and packaging it for iPhone with flash professional doesn't work. So AIR 2.6 has to be used for that.
KBS wrote:
If you do it with the AIR 2.6 SDK, things should be faster...



I´ve installed AIR 2.6 SDK but I´m not sure if it´s working properly. How can I be sure? The FPS of the app are still low (5-10 fps), specially when they´re in contact with each other.

Thanks
Are you using gpu rendering?
Artofacks1 wrote:
Are you using gpu rendering?


Yes, im using GPU rendering.
Did you set your frame rate with code ? Making sure to toggle that framerate from 4 to 31 helps.
felipegm wrote:
Artofacks1 wrote:
Are you using gpu rendering?


Yes, im using GPU rendering.
I finally got around to making areal test with WCK on android and Iphone.

The results were bad. When adding shapes and multiple shapes the framerate dropped from 30 to 4 fps fast.

I did the same test with Flixel which is not really a hardcore physics engine but a game framework and that one steadily stayed at 30 fps and would dip once in awhile to 27 fps but would also climb to 33-34 fps.

Next up I am going to try Corona Anasca. I was trying to stay away from that cus I wanted to still code in AS3 but the box3d flash is just a bare to learn, its almost learning another syntax lol!!! Plus code gets long fast.

Anyhow, still researching will share more as I progress.
You said you tested both android and iPhone. Where the results the same on both?

I've gotten very good results with wck on Android (running on an Epic 4G, with 40 fps), but haven't tried iOS yet. I hope to try it soon. I'd be interested any further results you find with iOS. 🙂 What kind of device where you running it on?

Thanks!
I have done some testing on iOS using an iPad 2, the performance is much better than I expected - although not amazing. The key I have found is using stagequality.low, this gives an extra 30fps. Bitmaps are smooth even when rotated and resized and perform much better than vectors from what I have seen so far.

I compiled the WCK demo file into an app with the only modification adding the stagequality.low setting. GPU rendering and packaged using AIR 2.6

Results:

Radial Gravity + Kinematic Bodies: 17 ~ 30fps

Revolute Joint Bridge: 30fps (even with flicking the shapes all over the place)

Conveyor Belts / One Sided Platforms: 14 ~ 18fps

Performance Test / Stacking: 4 ~ 8fps (30 once the shapes are asleep)

Draw Solid Shapes With The Mouse: 30fps (even with me spamming shapes - drawing them with my finger is very cool!)

Animated Line Arcs: Crashes after 2 seconds.

Revolute, Line, Prismatic, Fixed, Weld, Gear, Distance, Rope, & Pulley Joints: 30fps

Animated Buoyency + Waves: Instantly crashes.

Simple Platformer: Instantly crashes (although I have a version of this I am working on which does not crash and provides 30fps, that said it has far less objects and no parallax background).

Hope this helps anyone who is curious.
This aint been mentioned so thought i'd say... but with Flash Pro CS5.5 which come out recently you can now easily publish to Android or iOS, and AIR 2.6. No command line stuff anymore.

I've also tested the WCK demo's on a Samsung Galaxy S2, which is the fastest smartphone at the moment, and also faster than any tablets like iPad 2 or Motorola Xoom. It also has 1GB RAM.
Nearly all demo's run at a constant 30fps, only 1 demo drops below this and goes down to around 18fps, but overall very smooth and no crashes. Oh and all this this is without setting the stage quality to low, it's on default!... i seriously love this phone.

Original thread: https://box2d.org/forum/viewtopic.php?t=6654