From Construct 2 to Mobile

Discussion and feedback on Construct 2

Post » Sun Jul 08, 2012 1:02 pm

Hi All!

I've recently started a new project, specifically aimed at being played on a mobile, and designed for the iPad3 retina. On the pc browser, it's running great. Nice and smooth, showing 60fsp. Thing is, when I try it out on my PC at work i5, should be more than capable, it's quite slow, averaging 22fps.

It has one particle system, Box2D physics, etc. The only thing I imagine may be slowing it down are the large sprites. The background is the full 2048 x 1536 pixels, but is only 111kb in size. The second largest sprite is 980x980 (71kb). Are these two items the ones slowing it down?

I doubt it's any surprise, but when I preview the game on my iPad, it's very slow indeed. Maybe around 2-5fps.

I've also tried exporting to my android samsung galaxy s3 (quad core) to see if it has any luck. AppMobi doesn't work at all (just a blank screen), and PhoneGap works, but shows very slow... and isn't centralised on my phone screen, but I don't mind that too much as it isn't designed for widescreens.

Also looked at Cocoon, but their website confuses the heck out of me, so I quickly moved along.

Any advice to improve speeds would be greatly appreciated.

I have considered making the game in MMF2 instead, but at the moment, Construct 2 seems more capable.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 931
Reputation: 9,360

Post » Sun Jul 08, 2012 1:17 pm

Just tried deleting the 2 large sprites, and the game still runs slowly. Maybe it's the high resolution. 2048 x 1536 a little too high? It's being made for retina displays though, so I'm not sure what to do about this.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 931
Reputation: 9,360

Post » Sun Jul 08, 2012 1:29 pm

You should really use CocoonJS
Here is the WIKI ( Easier to understand )
http://wiki.ludei.com/

I think the particle system is slowing the system
( Because you can't compare a PC to a Mobile )
Personnaly , My Pc is 3 years older than my Mobile and it runs faster
You need to atleast make a difference of 20fps or more between you pc and you mobile !
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Sun Jul 08, 2012 1:59 pm

Have you read Performance tips in the manual? We're also working to improve directCanvas and CocoonJS support which hopefully will fix performance problems in future. Also CocoonJS is really simple, you just need to add the CocoonJS Launcher app and export to CocoonJS from C2, but the launcher is only available for Android right now (although iOS support is being prepared too).

The #1 performance problem with Windows PCs is also old graphics drivers getting blacklisted and falling back to software rendering. Try updating the graphics driver and see what chrome://gpu says (if you use it - if not, give it a shot).Ashley2012-07-08 14:00:09
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sun Jul 08, 2012 7:01 pm

When I try to use Cocoon, it just says "Oh noes! Invalid email address" despite what I put in... Very odd. If I delete the particles, I can get 16fps, but I kind of expect more. The particles rate can be lowered to 50, and it accepts it, but 11fps is crazy. I keep thinking it should be determined by the hardware. My ipad 3 is getting shocking speeds, and yet it can play games like Infinity Blade.

I have no idea what I'm doing with Cocoon. Does it create apps, or just allows you to play games?
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 931
Reputation: 9,360

Post » Sun Jul 08, 2012 7:55 pm

I'm getting unplayable performance on iOS using phonegap build. With Android thru phonegap it's pretty good and I have successfully published, taking note of the performance tips. Gonna see whether appmobi with directcanvas will get me some performance traction on iOS!
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Sun Jul 08, 2012 7:58 pm

...cocoon doesn't allow upload to the apple app store just yet and they haven't got a launch date for it happening yet, tho cloud service on its way. Looking forward to it happening.
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Mon Jul 09, 2012 6:28 am

Phonegap has become almost useless for iOS recently. My game works perfectly within the ios browser but once I put it through Phonegap and load onto the ipad device it halts to a crawl. I though phonegap used the local browser and its speed would be comparable?

Looking forward to cocoonjs build - my attempts so far with the android cocoon app has been a blank black screen with FPS numbers in at the top corner - even for their demo apps.

Really liked phonegap but the performance issues are killing it. appMobi is much the same IMO. fingers crossed for cocoonjs
B
12
G
1
Posts: 18
Reputation: 1,388

Post » Mon Jul 09, 2012 8:03 am

So does Cocoon create apps? I really don't get on with the website or app. Very user-unfriendly I find. No idea why it thinks all my email addresses are invalid.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 931
Reputation: 9,360

Post » Mon Jul 09, 2012 8:31 am

Hi,
if you want to develop a game for iOS you have to use Xcode and eventually an Objective-C based framework like, for example, Cocos2d.
I'm very sorry to say this, but I think it's not the right way to use a technology for a specified target (html5) to develop a game for another and totally different system (iOS). For a lot of time I used "hybrid" tools to devolp with one shot for different platforms and every time I found problems. The only time my work goes OK is when I use the specified tool for that platform. Remember: while you spend time to convert and readapt something to something else, others reach the target using the correct tools...stevenworks2012-07-09 08:33:32
B
16
S
3
G
4
Posts: 32
Reputation: 1,911

Next

Return to Construct 2 General

Who is online

Users browsing this forum: spacedoubt, Unconnected and 0 guests