Performance improvement with Phonegap 2.2

Discussion and feedback on Construct 2

Post » Mon Nov 12, 2012 5:33 pm

As stated here Apache rewrited from scratch the android javascript to java bridge with a 25x performance increase (!!!) on code execution.
On my Galaxy ACE (800 Mhz single core) the overall performance increase is very high boosting my game (clyde) from 14-15 FPS to 20-21 FPS (a 30-35% increase).
GFX rendering is still not HW accelerated, but this new Js2Java bridge leave a lot of CPU time for software rendering.
This is a good news for those who can't use an accelerated solution like Appmobi or CocoonJS.
B
11
S
3
Posts: 224
Reputation: 2,028

Post » Mon Nov 12, 2012 6:23 pm

Cool can't wait to try it.

Did you publish using their build server? or though your own xcode publish?
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Mon Nov 12, 2012 6:31 pm

I used Eclipse on windows. PG 2.2 is not yet available on PG build servers.
I'm testing just now my game and I don't find any issue with my C2 project. Everything seems to work as expected (accelerometer, audio, custom plugins, custom code called through callJS...)
B
11
S
3
Posts: 224
Reputation: 2,028

Post » Mon Nov 12, 2012 6:48 pm

Interesting, but software renderers are still pretty poor for games. There really needs to be an accelerated solution which is why we still recommend directCanvas or CocoonJS.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Mon Nov 12, 2012 7:48 pm

I agree with you Ashley. HW acceleration IS the way. But in my case neither Directcanvas nor CocoonJS are ready to run my project, so this is a good way to test my game on a real mobile device with a playable performance while waiting for accelerated wrappers improvements.
B
11
S
3
Posts: 224
Reputation: 2,028

Post » Tue Nov 13, 2012 1:34 pm

Excellent news, I'll take a look and see how it performs. I'm still operating using cordova 1.7.0 as every build after that has some issues with playing sounds. Hopefully 2.2 doesn't have any sound issues.
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Tue Nov 13, 2012 5:36 pm

I migrated my app from 1.7 to 2.2 without issues.
Talking about sounds, BG Music on android doesn't butcher FPS anymore.Knifegrinder2012-11-13 17:37:31
B
11
S
3
Posts: 224
Reputation: 2,028

Post » Tue Nov 13, 2012 8:51 pm

So far so good! Didn't play bg music on first boot, but played all sound effects. bg kicked in on second play. Looks less laggy, but I haven't checked fps yet. Thanks for the tip off!!
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Tue Nov 13, 2012 9:34 pm

@Knifegrinder Yeah!!! Just embedded FPS text and it's boosted one of my games from 17-21 fps to 22-26 fps, and it looks smoother. Kickass!
...the downside is that when the I close the app the background music keeps on playing so I'll have to build a workaround (or just not have bg music) AndyWatson2012-11-13 21:36:06
B
31
S
11
G
7
Posts: 197
Reputation: 6,682

Post » Wed Nov 14, 2012 6:27 am

So are you saying you don't need to use Audio Latency Plugin anymore to get reliable audio playback?
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 16 guests