Software Archive
Read-only legacy content
17061 Discussions

android app extremely slow and iOS app heating and drains iPhone 6 battery

Renato_B_
Beginner
1,480 Views

I don't know what changed in the last Intel XDK updates, but something expressive really changed. Before these updates my apks run very well, smoothly and in the same velocity of the web browser. Now, a unique sprite that uses only a "bullet behaviour" move very slowly making the game unplayable. In the case of the ios apps, the device is heating and battery drain a few minutes later. Not to mention the fact the problems with cordova plugins. Sorry to ask but: why the Intel XDK became worse? Are you doing something to revert this situation? Do you have any idea how long to fix these issues? Thanks.

0 Kudos
32 Replies
Renato_B_
Beginner
954 Views

I would like to know why I don't get answers for my questions? Could anyone from Intel team give me an answer, please? Thanks in advance.

0 Kudos
John_H_Intel2
Employee
954 Views

Without an apk or source code to attempt to reproduce the issue there is not a whole lot we can do except ask questions.

Did you rebuild your apk? Do you still have the old apk that works fine?

What device/OS are you testing on? 

Do you see this on all devices? Which have you tested on?

Did your device recently get an update?

Did the plugins you are using get updated?

Did you alter the code or add other plugins?

0 Kudos
Renato_B_
Beginner
954 Views

Thanks for the answer, John

Unfortunately I don't keep any old apk/ipa.

I'm testing the app in several devices, all of them updated. 

APK - moto g, samsung tab 4, samsung tab pro
IPA - iPhone 6

In any of these android devices, the animations runs slowly, even more the samsung tab4/pro (unbelievably slow - the game was unplayable). The tests that I did with iPhone, the only problem I found was the device's heat (IMO is a big problem, but less than slowness).

In most applications I am using only the admob or revmob plugin and I only remove the code of intelxdkconfigadditions.xml because I'm using CLI 5.1. But I did some tests with CLI 4.2 and the problem the problem continued to happen.

Thanks

PS: Could you visit us in the Scirra's forum to get a feedback from the Construct2 users?

0 Kudos
John_H_Intel2
Employee
954 Views

Are you building with Crosswalk for Android?

Do you have a link to a specific question you would like us to look at on the Scirra forums?

0 Kudos
Renato_B_
Beginner
954 Views

Yes. I always use Crosswalk for Android.

I don't have a specific link. If search for something like "intel xdk" + "slow" or "lag" you'll get several post about this issue, like these links bellow:

https://www.scirra.com/forum/viewtopic.php?f=147&t=163388&p=990037&hilit=intel+xdk+android+slow#p990037

https://www.scirra.com/forum/viewtopic.php?f=147&t=163452&p=989763&hilit=intel+xdk+android+slow#p989763

https://www.scirra.com/forum/viewtopic.php?f=147&t=166272&p=1003117&hilit=intel+xdk+android+lag#p1003117

Some users are changing for Cocoon, despite them like to work with the XDK, because these problems. A long time ago, some guys from Intel usually go to the Scirra's forum to give us some support and get informations to improve the XDK, but they are gone.

0 Kudos
Renato_B_
Beginner
954 Views

I still need some help with this issue. I'm waiting to publish my game for android with Intel XDK.

0 Kudos
John_H_Intel2
Employee
954 Views

Can you send a private message with a zip file that contains the entire project?

0 Kudos
Renato_B_
Beginner
954 Views

For test only? Could be any capx?

0 Kudos
John_H_Intel2
Employee
954 Views

It needs to be a set of project files that exhibits the behavior you are experiencing.

 

0 Kudos
PaulF_IntelCorp
Employee
954 Views

Renato, see this FAQ and let us know if it helps > https://software.intel.com/en-us/xdk/faqs/crosswalk#crosswalk-animatable

0 Kudos
Renato_B_
Beginner
954 Views

Thanks, Paul

I tried it, but the movement still very slow. The IPA is okay. The movement is perfect. The problem is the android version. If the problem was the game, the problem would be repeated in the IPA.

0 Kudos
PaulF_IntelCorp
Employee
954 Views

Not necessarily, the runtime environment on an iOS device is not the same as that on an Android device. It's like running your app inside two different browsers, where iOS is similar to Safari and Crosswalk is similar to Chrome. So there could be something you're doing in the game that is supported differently in Safari than it is in Chrome, for example.

There may be a Chromium command-line option that might help, see this blog for some pointers > http://blogs.intel.com/evangelists/2015/06/25/chromium-command-line-options-for-crosswalk-builds-with-the-intel-xdk/ -- especially those related to GPU operations.

0 Kudos
Renato_B_
Beginner
954 Views

Paul,

I included the lines and I got:

9.8 FPS (8-15) with 15.2 mb GPU memory used

not including

9.6 (8-12) with 15.7 GPU memory

no change on game speed

0 Kudos
PaulF_IntelCorp
Employee
954 Views

Did you try the --ignore-gpu-blacklist option? See this list of options > http://peter.sh/experiments/chromium-command-line-switches/

0 Kudos
Renato_B_
Beginner
954 Views

Yes, but I didn't succeed.

Any other possibility to fix it?

In Scirra's forum you'll find a several discussions about the perfomance of the applications built in the Intel XDX and comparisons with Ludei Cocoon. In all of them, who tried both, said the Cocoon is much better than XDK. How it's possible? What's the big difference between these two solutions and why XDK got worse suddenly?

0 Kudos
PaulF_IntelCorp
Employee
954 Views

Renato, can you provide some specific links to the Construct2 issues? Can you provide a sample app that we can work with to understand the issue better? Our test apps do not see this issue.

0 Kudos
Renato_B_
Beginner
954 Views

Ok Paul. I'll send you a APK by PM with the game that I'm working now.

0 Kudos
Renato_B_
Beginner
954 Views

Paul

Did you received the file?

0 Kudos
PaulF_IntelCorp
Employee
954 Views

Yes, sorry Renato, I have lots of non-forum work to do, as well, so it takes me a while to get to more complicated issues.

0 Kudos
PaulF_IntelCorp
Employee
892 Views

Renato -- try adding the --ignore-gpu-blacklist option to your additions file. See this FAQ > https://software.intel.com/en-us/xdk/faqs/crosswalk#crosswalk-animatable

Beginning with the CLI 5.1.1 build system you must add the --ignore-gpu-blacklist option to your intelxdk.config.additions.xml file if you want the additional performance this option provides to blacklisted devices.
0 Kudos
Reply