Cross-platform SDK and HTML5 tools for mobile app development
X
 

Alex Jonsson's picture

Faster Android Virtual Device AVD

When using the Android emulator, I've noticed that my laptop halts to a craw pretty much, with a few FPS even if the same app runs 20 FPS on a physical device. And when @mosync got a tweet from @_mark who had a pretty decent PC to work with and had similar issues, I had a look into why it's so and what you can do about it. Note that many discuss long startup details, while these tips are rather about performance once up running an app in emulation.

After some StackO studies, gaining basic understanding about the implications of emulating an ARM device doing actual ARM opcodes, and the fact it's a single threaded nature so running multiple cores doesn't help. There are a number of things you can do to make your life easier. Well, we don't want it to run too fast either, but basic tips found sound as follows:

* Increase Device RAM Size to 1024 instead of default 256, when you create your AVD
* Disable hyperthreading in the BIOS
* On a multi-core, try running on another CPU than CPU 0.

More detail reads here:
http://stackoverflow.com/questions/1554099/slow-android-emulator
http://stackoverflow.com/questions/7399071/why-is-the-android-emulator-slow
http://stackoverflow.com/questions/2662650/making-the-android-emulator-r...

On QEMU process emulation on Wikipedia
http://en.wikipedia.org/wiki/QEMU

/Alex