Phonegap performance on iphone

Get help using Construct 2

Post » Sat Feb 15, 2014 7:33 pm

Hi, i'm exporting my construct 2 project to phonegap in order to take the .ipa file to test and in the future publish in apple store. The problem is that the phonegap performance seems very low due to fps rate. In order to know if this is my project or the phonegap service i want to know 2 things:

This .ipa file that i installing on iphone has the same performance as a native app? (If the performance is the same, how could a game with 2mb run lower than a game with 170 for iphone (Oceanhorn)).

How can i increase the performance? (Actually i reduced the game size to 1,1Mb and it still run slow)

EDIT: The game runs really well on iphone browser previewing over wifi.mahirosan2014-02-15 20:09:05
B
7
S
2
G
1
Posts: 38
Reputation: 917

Post » Sat Feb 15, 2014 9:18 pm

First, define "native app".
If by this you mean something that uses the hardware acceleration, then no, PhoneGap doesn't support this (however the filesizes are extremely small), therefore the performance cannot be improved to "native" levels, unless you utilize a different export option (e.g. CocoonJS, but you'll get about another 10-20 additional megabytes to the download size + an annoying splash screen + no support for the older versions of android). Software rendering is slow.Stiivais2014-02-15 21:20:49
B
10
S
1
Posts: 163
Reputation: 1,436

Post » Sat Feb 15, 2014 9:25 pm

Phonegap really is not a good option for making games. I've used it on simply word search apps and it worked ok, but that was pushing it.

B
100
S
32
G
11
Posts: 1,552
Reputation: 21,612

Post » Sat Feb 15, 2014 9:30 pm

In my opintion the cocoonjs user experience is 100x better than phonegap's - frame rate and rendered image quality. The down sides are the awful load time and the flickering splash image (amateur). You never know, however, in the same way we're waiting for mobiles to become more powerful to allow html5 browser games to work at 60fps, the same improvement in technology might make phonegap more viable as well.
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
73
S
19
G
66
Posts: 2,198
Reputation: 42,193

Post » Sat Feb 15, 2014 9:43 pm

It would be nice if you take your time to test WizCanvas plugin for PhoneGap https://github.com/Wizcorp/phonegap-plugin-wizCanvas

It requires to implenent on native language editor such as Java for android and Objective for iOS and call WizCanvas function via javascript before to compile executable file, it could be a worth to test and let's see the results.

I'm sorry, I have no experience to build game with PhoneGap with plugins.
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,361

Post » Sat Feb 15, 2014 10:21 pm

Thanks for the responses guys. I'll try to use cocoonjs to export my projects.
B
7
S
2
G
1
Posts: 38
Reputation: 917

Post » Sun Feb 16, 2014 9:25 am

@mahirosan I think you can't increase performances with phoneap :/
i was trying that for a long periode without any results !
i advice you to export your game with cocoonjs it's faster x10 times ,

for phonegap i think C2 should integrate something to boost the speed ,

as Joannesalfa said adding wizCanvas plugin would be a nice solution , im trying to integrate it with C2 game but it seems to be not easy :p

B
17
S
3
G
3
Posts: 86
Reputation: 2,795


Return to How do I....?

Who is online

Users browsing this forum: NN81, TsubaRu and 10 guests