CPU usage on IOS/Android

0 favourites
  • 4 posts
From the Asset Store
Source File, music and art pack for Android Negotiator
  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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

  • Good info!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)