emulating ionic really slow even on genymotion just using the “tabs” example


http://stackoverflow.com/questions/32130738/emulating-ionic-really-slow-even-on-genymotion-just-using-the-tabs-example


i'm trying to test my ionic app on genymotion but it's very slow (animations take up to 2 seconds to play, transitions are laggy)

I could not find a solution so i tried creating a test project from scratch to see if it worked smoothly on genymotion. I tried just running these commands on the command line to build a new example project.

     ionic start myApp tabs
     ionic platform android
     ionic run android

after that the example app gets started on genymotion, but it's still very slow. is this normal?

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


I'm answering my own question hoping that it will be helpful to someone in the future.

After testing on a real device I discovered that apparently genymotion does not work well when emulating cordova apps (this might have something to do with the webview version genymotion uses, but i dont know), and android's SDK emulator is just horrible and unusable.

I tested my app on a real device and it works OK, so the emulation was not representative of the actual performance, not even using genymotion that has been known to be very fast, at least for hybrid apps in the current version

In the end testing on a real device seems to be the only way to be sure.


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


You can use sdk version 4.2 , it is still better than 4.4 for now to run ionic in genymotion.

https://github.com/driftyco/ionic/issues/3619

share improve this answer

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


The best solution I've found is the following

  1. Install "Google APIs Intel x86 Atom System Image" for your preferred SDK version (I'm using 6.0.0)
  2. Create a new AVD with the following settings:
    • Target -> Google APIs (Google Inc.) - API Level 23
    • CPU/ABI -> Google APIs Intel Atom (x86)
    • Memory Option -> RAM -> 1024 (too much ram causes the emulator not to start)
    • Emulation Options -> Use Host GPU -> Checked

From my experience, this was the best performing emulator. Hope this helps.


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值