Can I tweak my android emulator to make it fast?

2019-01-16 02:15发布

I am using the android emulator to run my programs. But its really slow. It takes around 90 seconds to startup and show the home screen. Can I tweak it so that I can reduce this time considerably? Thanks

13条回答
你好瞎i
2楼-- · 2019-01-16 02:35

If you have the mobile device with you, it's much quicker (and more reliable) to compile it via USB to the device. It takes around 5 seconds to compile and install on your phone, I never use the emulator anymore - it's just to slow.

Not only is it slow but anything other than static widgets (animation) will struggle to run on the emulator and you will notice lag.

查看更多
一夜七次
3楼-- · 2019-01-16 02:36

While developing my game, Elastic World, I was suffering from the same problem. After waiting minutes for the emulator to startup, the game was running at 20 FPS maximum. Even on low end android devices I could easily get 60 FPS.

So I moved to a VMWare Android machine, following the instructions from this site: http://www.android-x86.org/documents/installhowto/

The same game loop now runs at 250 FPS. (it's not playable at this speed and I have the game limited to max 60 FPS, but overriding this limitation it gives 250 FPS)

查看更多
男人必须洒脱
4楼-- · 2019-01-16 02:37

actually these are all great answers, but have u thought of changing the ram from the default 96mb to something like 512? works for me :)

查看更多
我想做一个坏孩纸
5楼-- · 2019-01-16 02:41

You need to install Intel HAXM

  • open you SDK and install

enter image description here

  • Create a new AVD

enter image description here

  • Now when run it you should get this

enter image description here

if not then you will need to install Accelerated Execution Manager

See this Running the new Intel emulator for Android on how can you do this

enter image description here

see how much faster do you get Video

查看更多
Emotional °昔
6楼-- · 2019-01-16 02:43
  1. The -no-boot-anim parameter is good.
  2. Don't turn the emulator off, just re-launch your app.
  3. For further speedups, try the new snapshot feature, which is described here.
查看更多
淡お忘
7楼-- · 2019-01-16 02:45

If you absolutely cannot use a physical Android device, what you can do is run the Android OS on Virtualbox, and then get the IP address of the emulated Android. Then you'd connect ADB to the emulator using that IP address. That's the jist of it. I've written a more detailed guide to this approach on my blog. http://www.bobbychanblog.com/2011/07/faster-android-emulator-alternative-using-virtualbox/

查看更多
登录 后发表回答