INTEL XDK Crosswalk for Android FPS is low

Discussion and feedback on Construct 2

Post » Tue Jan 21, 2014 3:45 pm

hello
i am testing some project on android devices using xdk and it s slow so i decided to test a simple project
a sprite with physics behaviours
a sprite with 8 direction behaviours
a text to show fps

and it run at aproximatly 33 fps for a simple project
what i did
turn off webgl --> fps drop
changing physics to asm.js --> black screen
changing physics to cocoon native --> same fps no difference
her my capx
http://wikisend.com/download/804320/Desktop.zip
B
7
S
2
Posts: 44
Reputation: 668

Post » Tue Jan 21, 2014 5:10 pm

Did you try running it in Chrome for Android? Did you test on mobile from the start?
Scirra Founder
B
397
S
236
G
88
Posts: 24,423
Reputation: 194,560

Post » Tue Jan 21, 2014 5:26 pm

@Ashley hello
i tested on acer iconia b1 (android 4.xx with 1gb of ram) .
i intalled the APK that Crosswalk made from my project.
B
7
S
2
Posts: 44
Reputation: 668

Post » Tue Jan 21, 2014 7:46 pm

update
i tried preview with lan and the result are:
run at 33 fps on my android 4 tablet (with 1gb of ram) using chrome
run at 13 fps on my ipod touch 4th generation using chrome
run at 2 fps on my android 2.2 tablet(very old and it has only 256 ram) using firefox
B
7
S
2
Posts: 44
Reputation: 668

Post » Tue Jan 21, 2014 7:47 pm

I have a question. Did you do the specific Crosswalk export or the Intel Canvas/PhoneGap export to Android. XDK will export both to the old PhoneGap and the new Crosswalk.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Tue Jan 21, 2014 7:50 pm

update:
preview over lan usually doesn't get the any performance acceleration.

So far it sounds like your using XDK Export to the old PhoneGap rather than the new Crosswalk.

I could be wrong, but it's really hard to tell. I made the mistake of not updating my XDK with XDK NEW and my first tests were PhoneGap exports which had no speed benefit over just the native mobile browser. XDK NEW with the Crosswalk button export boosted the performance results.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Tue Jan 21, 2014 7:50 pm

@jayderyu i did use the new android Crosswalk marked as beta not the normal onetnindie2014-01-21 19:54:20
B
7
S
2
Posts: 44
Reputation: 668

Post » Wed Jan 22, 2014 1:18 am

I find it very lacking for any physics via CocoonJS or Intel Crosswalk, its as if its not being accelerated at all and runs like crap.

It is very disappointing, because Ludei had a physics demo that ran flawlessly and they were hinting on adding it to their compiler, but I find the results are unimpressive.. even with a few objects. There is something inherently broken, if CJS and XDK does accelerate, then the issue appears to be somewhere between C2 and their compilers.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Wed Jan 22, 2014 11:01 am

Preview over LAN is accelerated, it should be just the same performance wise.

It sounds like Crosswalk is performing the same as Chrome for Android, which means it's working correctly. If you didn't test your game on mobile from the start that's probably why it's slow, your desktop could be 100x faster than your phone. See also performance tips.
Scirra Founder
B
397
S
236
G
88
Posts: 24,423
Reputation: 194,560

Post » Wed Jan 22, 2014 12:42 pm

thanks Ashley
B
7
S
2
Posts: 44
Reputation: 668

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests