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

shareimprove 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.


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

posted @   张同光  阅读(102)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示