Ejecta or PhoneGap?

Show us your completed creations made in Construct 2

Post » Wed Jun 11, 2014 10:41 pm

I thought Scirra was working to improve the Ejecta plugin, but now it seems they are throwing their support behind PhoneGap with the latest Beta build. Which is better for iOS? Can anyone explain the differences between them?
B
14
S
7
G
3
Posts: 145
Reputation: 3,035

Post » Wed Jun 11, 2014 11:54 pm

I thoguht the blog explaining IOS would be enough.

IOS8 WebKit that all browsers(except when running safari) are now able to access Nitro(accelerated javascript runtime compiler) and WebGL(full GPU acceleration). This means that PhoneGap will get access to it's weakest performance areas. The JS runtime and the GPU which Phonegap could not use. However this only counts as IOS8+

IOS7 does not allow PhoneGap or other browsers including WebApps to access Nitro or WebGL. So when running a game not in Safari will suffer large performance loss. So people made Ejecta. Which has a good JS runtime and a good graphics rendering.

If you want to support IOS7 and lower. You need to sue Ejecta/CacoonJS. If you are willing to support only IOS8+ then PhoneGap is probably going to be the better choice int he long run. Also and this is my favorite news. PhoneGap allows Cordova plugins. And... drool. Someone is making a PhoneGap WebRTC plugin. Where as no one is doing that with Ejecta. So when the that plugin is done.

PhoneGap =
WebGL
Nitro
WebRTC
Full memory management.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Thu Jun 12, 2014 12:26 am

That is great to know. I was thinking about that myself.
B
4
Posts: 4
Reputation: 210

Post » Thu Jun 12, 2014 12:56 am

@jayderyu

What about the audio ? Does it support multiple audio played at once ? Previously I think PhoneGap can only play one audio at a time.
B
75
S
22
G
14
Posts: 388
Reputation: 12,222

Post » Thu Jun 12, 2014 1:13 am

The great thing about PhoneGap and the Apache group that has made Cordova. Is that talented programmers can build interfaces from native to the JS level. While PhoneGap probably doesn't have a built in solution. this doesn't stop us from making or better yet finding solutions.

https://github.com/triceam/LowLatencyAudio
http://www.tricedesigns.com/2012/01/25/ ... -phonegap/
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Thu Jun 12, 2014 4:54 am

@jayderyu

Thank you for the reply and the information about PhoneGap. I didn't know about the blog post. I'll read further into it.

Since 89% of iOS users (according to Apple) are using the most current version, PhoneGap might be the way to go when iOS 8 is released. Providing everyone chooses to upgrade. If I remember correctly, iOS 8 will run on an iPad2 and iPhone 4s.
B
14
S
7
G
3
Posts: 145
Reputation: 3,035

Post » Thu Jun 12, 2014 3:15 pm

Sebastion. yeah. IOS has amazing upgrade ratio compared to most other OSs.

There is a tutorial for getting low latency polyphoncs to work in C2. However if PhoneGap ends up being the main way to go. Then I wouldn't be surpised that Ashley could implemented a proper integration.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Fri Sep 26, 2014 10:50 pm

I know this is old, but I just stumbled across it.

I did a performance test between iOS8's WKWebView and Ejecta. We have a pretty complex scene. I really don't think the WKWebView is going to be THAT much better. It is great for simple pages, but for games it still doesn't cut it.

With a large scene we were getting 50fps for ejecta and crawling around 10fps for WKWebView.

I don't know if someone created hooks to make phonegap + wkwebviews + canvas better, but its doubtful.
B
2
Posts: 2
Reputation: 154

Post » Sat Sep 27, 2014 12:59 am

parrissays wrote:I know this is old, but I just stumbled across it.

I did a performance test between iOS8's WKWebView and Ejecta. We have a pretty complex scene. I really don't think the WKWebView is going to be THAT much better. It is great for simple pages, but for games it still doesn't cut it.

With a large scene we were getting 50fps for ejecta and crawling around 10fps for WKWebView.

I don't know if someone created hooks to make phonegap + wkwebviews + canvas better, but its doubtful.


How did you managed to try this test out, and on which device?
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Sat Sep 27, 2014 2:52 pm

@parrissays - I'm not sure you did your test right, WKWebView can JIT-compile Javascript and Ejecta cannot, so it should be possible for WKWebView to outperform Ejecta by 3-4x.

BTW this blog post is relevant to the OP: https://www.scirra.com/blog/150/html5-game-performance-on-ios-8

We have already deprecated CocoonJS and will likely deprecate Ejecta in future too, so go for PhoneGap.
Scirra Founder
B
387
S
230
G
88
Posts: 24,254
Reputation: 192,470

Next

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 1 guest