CocoonJS performance IOS (iPhone 4)

Get help using Construct 2

Post » Thu Sep 05, 2013 11:50 am

Hey, are anybody else having problems with CocoonJS performance on IOS, specifically iPhone 4?

I have a physics based game that I'm making for IOS and Android, and I'm always testing it on an iPhone 4, iPad Mini and my Google Nexus S.

On my iPad Mini it's always at 60 fps which is to be expected I guess. My Google Nexus S is at the moment also pretty much always at 50 fps. But when testing it on iPhone 4 the framerates often drops to under 20 sometimes even 10 fps.

Is this a problem anybody else has had before? I'm thinking it maybe has to do with some event optimization. Because I've tested CocoonJS's physics demo on the iPhone and it also runs at 50 - 60 fps..

Also this might sound like a noobish question but how do I post on the CocoonJS forums? I can't find it anywhere..

Could Intel XDK be better performance? Haven't tried it yet to be honest.

EDIT: Does anybody know when Ludei plans to support the accelerated physics engine for Construct? Seems like this would improve performance alot.tauer2013-09-05 12:49:35
B
3
Posts: 16
Reputation: 232

Post » Thu Sep 05, 2013 1:05 pm

Are you using accelerated physics?
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Post » Thu Sep 05, 2013 1:20 pm

Thanks for answering!

No, right now I'm using web-based physics. There's a bug in the CocoonJS launcher when using accelerated physics. I get a black screen on startup with accelerated.
B
3
Posts: 16
Reputation: 232

Post » Thu Sep 05, 2013 2:19 pm

@tauer I'd recommend speaking to Ludei directly. We had similar physics issues and they were quick to fix.
Moderator
B
72
S
14
G
11
Posts: 900
Reputation: 11,940

Post » Thu Sep 05, 2013 2:21 pm

@thehen Thanks! I just sent them an e-mail, hopefully I can get this fixed because as it is now the game is almost unplayable on the iPhone 4.tauer2013-09-05 16:23:41
B
3
Posts: 16
Reputation: 232

Post » Thu Sep 05, 2013 4:16 pm

@thehen Were the fixes something that would be valuable to add to this thread? Or were they project specific fixes that wouldn't necessarily apply to everyone?

Thanks!
B
52
S
13
G
7
Posts: 147
Reputation: 6,800

Post » Thu Sep 05, 2013 4:36 pm

@tauer have you checked that it's definitely physics related? Might be worth removing the physics behaviors just to make sure.

@basspenguin they were generic fixes that I'm sure Ludei will implement into the Construct 2 plugin and CCJS releases soon. Previously I couldn't get any of my games to run with native physics, now they all do. Even with crazy joints.
Moderator
B
72
S
14
G
11
Posts: 900
Reputation: 11,940

Post » Thu Sep 05, 2013 5:37 pm

@thehen I haven't tried removing the physics behaviours but I tried making a new project where I put in a few objects only with physics behaviour and nothing else.
The performance on the iPhone 4 is still considerably lower than on my Android phone. I got about 20 - 25 on the iPhone and about 50 on my Google Nexus S, so I assume it is physics related.

Another possibility is that it's simply CocoonJS running badly on the phone but that doesn't seem to have happened to anybody else.tauer2013-09-05 17:38:04
B
3
Posts: 16
Reputation: 232

Post » Fri Sep 06, 2013 5:00 pm

I can just add that iw done some testing on different Apple devices and iPhone 4 and 4S allways performed worst... they are slowest of them all, even Ipod touch performed better.

http://www.scirra.com/forum/topic72064.html

cheers!
B
28
S
11
G
2
Posts: 688
Reputation: 5,126

Post » Fri Sep 06, 2013 5:09 pm

That's really strange.. and annoying :(

Does anybody else have any suggestions? I've sent an e-mail to Ludei but haven't gotten an answer yet.

I just got a new phone, Xperia Z SO-04e. Constant 60 fps.
I find it really strange that the iPhone 4 specifically performs that poorly.
B
3
Posts: 16
Reputation: 232

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests