Mobile performance issue (android)

Discussion and feedback on Construct 2

Post » Fri Dec 21, 2012 9:16 pm

Hi guys, the game I am prototyping runs fine on most PCs and the latest Iphone, but once it's tested on Android device, the performance hit becomes significant.

Probably a very dump thing to ask, but using alot of Every tick is a bad idea for mobile games?

I am trying to do an endless scrolling background and it seems like making it scroll all the time is a very bad idea?
B
27
S
9
G
5
Posts: 108
Reputation: 5,744

Post » Sat Dec 22, 2012 6:42 pm

Android's browser is just very slow. Try Chrome for Android or publishing via CocoonJS.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Sat Dec 22, 2012 7:38 pm

Thanks Ashley for the tips! After numerous testing, it seems it's partly my fault as I have Every Tick command for a lot of stuffs. I managed to get more FPS out of my older Android after tweaking some stuffs to evaluated only when necessary.
B
27
S
9
G
5
Posts: 108
Reputation: 5,744

Post » Sat Dec 22, 2012 8:14 pm

[QUOTE=Yung] Hi guys, the game I am prototyping runs fine on most PCs and the latest Iphone, but once it's tested on Android device, the performance hit becomes significant.

Probably a very dump thing to ask, but using alot of Every tick is a bad idea for mobile games?

I am trying to do an endless scrolling background and it seems like making it scroll all the time is a very bad idea? [/QUOTE]


It depends also on the device. It should run smooth on high end devices.
B
5
S
1
Posts: 49
Reputation: 1,148

Post » Sat Dec 22, 2012 8:20 pm

I tested it on a Xperia x10 which is pretty old, so I understand and expected the performance, but I was getting bad performance from nexus 7 and also samsung note 2 as well (had friends to test it).

Probably because they tested it using the Android browser
B
27
S
9
G
5
Posts: 108
Reputation: 5,744

Post » Sun Dec 23, 2012 1:15 am

try to test it with CocoonJs you should get 30-40 fps.
B
5
S
1
Posts: 49
Reputation: 1,148

Post » Sun Dec 23, 2012 2:15 am

Tested it with Cocoonjs, the performance is incredible! I managed to get a smoother fixed 17 FPS on the old machine.

Thanks a lot for the help!

On a side note, it seems Appmobi pales in comparison thus far. The directcanvas export didn't work for me. I haven't tested Phonegap though, but judging by what Cocoonjs did, I am happy to stick with it.
B
27
S
9
G
5
Posts: 108
Reputation: 5,744

Post » Sun Dec 23, 2012 11:18 am

[QUOTE=Yung] Tested it with Cocoonjs, the performance is incredible! I managed to get a smoother fixed 17 FPS on the old machine.

Thanks a lot for the help!

On a side note, it seems Appmobi pales in comparison thus far. The directcanvas export didn't work for me. I haven't tested Phonegap though, but judging by what Cocoonjs did, I am happy to stick with it.[/QUOTE]

Keep in mind if you use sound effects in can drop to 2-5 fps.

B
5
S
1
Posts: 49
Reputation: 1,148

Post » Sun Dec 23, 2012 11:51 am

why is that? Is it something that will be fixed? Ludei's side?
B
27
S
9
G
5
Posts: 108
Reputation: 5,744

Post » Sun Dec 23, 2012 1:03 pm

@Yung - typically 'every tick' events don't actually have a big performance impact. It's a common myth. See Performance Tips for our official advice.

Also how come appMobi didn't work? Can you tell us more about what went wrong? We may be able to fix the problem otherwise.

@meapps - I'm not aware of sound effects having such a large performance impact on any platform - you should report it to Ludei if so since it's probably a bug (there's no reason playing sound should slow it down that much)
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests