CPU usage on IOS/Android

Get help using Construct 2

Post » Tue Nov 03, 2015 8:46 am

Hello,
my name is Domenic and I'm developing an platformer game for Andoird and IOS.

I've got an huge perfomance issu on my IOS devices built with XDK, Phonegap...

When I Export the Project via HTML and upload it to my Website, it runs on my iPhone 6+ with 60 fps and 30% CPU usage, but if I export with Cordova and built an IPA it runs with 60 fps and 90%+ CPU usage. It heats up very fast...

I've made a Test game with just the tilemap and the Character. The same issue.
On my Samsung S3 the Test game runs with 52FPS and 25% CPU Usage (Crosswalk)

My Project settings:
- Sampling Point
- Physisc engine Box2D web (I dont use Physics)
- Preload Sounds Yes
- Clear background NO

My XDK settings:
Cordova CLI 5.1.1
Fullscreen
Landscape
IOS target 8

Here is an capx from my Test Project.
https://www.dropbox.com/s/t2zowqlmeoxm2 ... .capx?dl=0

A response would be appreciated.

Sincerely

Domenic Barth
Barth-Software
B
5
S
1
Posts: 16
Reputation: 409

Post » Tue Nov 03, 2015 3:32 pm

Cordova on iOS currently uses the UIWebView which lacks Javascript JIT support, so JS code runs ~3x slower which would explain the difference. You can enable it by finding a third party plugin to use WKWebView instead which does support JIT, or official support should be coming soon in cordova-ios 4.0.
Scirra Founder
B
402
S
238
G
89
Posts: 24,628
Reputation: 196,023

Post » Tue Nov 03, 2015 5:26 pm

Hello Ashley,

thanks for your reply.
I added the Plugin in XDK and now it finally works. :)

Thank you very much !

Sincerely

Domenic Barth
Barth-Software
B
5
S
1
Posts: 16
Reputation: 409

Post » Wed Nov 04, 2015 2:03 am

Good info!
Image
B
12
S
2
Posts: 91
Reputation: 862


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest