Air Hockey 2 Speed

Hi guys, I currently have just the demo version of Corona but have been working on an air hockey game using some of the code from the Air Hockey 2 demo app.

But I have read some posts on the net that the game runs very slowly on the iPad, which would be one of my main platforms for the game.

Is this right? Has anyone run the game on an iPad, and if so could you tell me what the speed was like on the device?

Many thanks
Dean [import]uid: 75910 topic_id: 18461 reply_id: 318461[/import]

It’s a demo app to teach coding concepts, and completely unoptimized for publication. Look at the “Touch Hockey” app on the Apple AppStore to see how incomplete the template is as commercial software.

-David [import]uid: 96411 topic_id: 18461 reply_id: 70824[/import]

Hi David, thanks for the reply.

The game I have been working on is completely different to the demo app and has single player, multiple levels, power ups, etc.

But it uses similar basic code to the demo app, but I now have a worry as to the speed on the iPad.

I am not sure how I can greatly optimise the code, as it just creates the physics objects that are needed?

Basically I am worried that Corona is not going to be fast enough to enable me to produce an air hockey game on the iPad that runs at a good speed because I am also added in-game particle affects as well?

What do you think? Is Corona fast enough for me?

Many thanks
Dean [import]uid: 75910 topic_id: 18461 reply_id: 70830[/import]

Corona is definitely slower than coding in C# with the Apple SDK. There are are lots of tricks to optimize code or minimize the effects in performance areas. The physics engine integration with Box2D could be better, finessing the physics settings and test through some trial and error will help guide you.

Not that helpful I know, but stick with it and you should get decent results with more experience.

-David
[import]uid: 96411 topic_id: 18461 reply_id: 70845[/import]

Corona is fast enough. Post up some code and we will either give you pointers on how to speed it up or give you code changes you require :slight_smile: [import]uid: 84637 topic_id: 18461 reply_id: 70903[/import]

Thanks for the responses guys, I have mainly been working on the Assets, the graphics and sounds which is taking a long time because I am not really a graphics artist and hardly coded anything yet.

I got a bit worried when I read some negative comments about performance of Corona, but I am happy now that with a bit of tinkering I should be able to get the game I want at the speed I want (or there about)

Thanks again
Dean [import]uid: 75910 topic_id: 18461 reply_id: 71033[/import]