Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator still slow as hell even with Intel image, why?

I've successfully installed the Intel AVM for Jelly Bean v4.1, and I can create and start an Intel x86 AVM. However it's just as slow as the ARM ones. Having wasted a lot of time on this, as far as I can see the Intel emulation is no faster at all than the ARM images.

I do have HAXM installed, and on starting the emulator a message appears suggesting it's running in "fast" mode, but it's certainly not fast!

Is this because my PC (Windows 7, Intel) is not compatible, or did I miss something? How do I check compatibility?

like image 755
Ollie C Avatar asked Sep 17 '12 16:09

Ollie C


People also ask

Why are Android emulators so laggy?

Running multiple programs at once on your PC can cause performance issues. While running Android emulator for playing heavy games, you should always avoid using up the RAM of your computer. This will cause severe lag to your PC. You can close unwanted programs by going to "Task Manager".

Why is my emulator slowing down?

The running emulator takes up a lot of RAM. This leaves less for the host operating system to work with, hence the host has to deal with using virtual memory to continue running (attempts to use the internal hard disk as RAM). This greatly slows systems down.

Why does my emulator take so long to load?

Google emulator uses ARM opcode, a kind of machine language. It must convert from ARM opcode to Intel opcode. That's why it's slow.


3 Answers

Quoting the documentation:

The software requires an Intel CPU with Virtualization Technology (VT) support

However, this is not necessarily enabled by default on every machine with a VT-capable CPU. Once again, quoting the documentation:

Virtualization extensions are typically enabled through your computer's BIOS and are frequently turned off by default. Check the documentation for your system's motherboard to find out how to enable virtualization extensions.

So, for example, on a Dell Latitude E6400 sitting to my right, there is a BIOS option for "Enable Intel Virtualization Technology" that you have to check.

like image 167
CommonsWare Avatar answered Nov 15 '22 13:11

CommonsWare


Checking the 'use host GPU' option in AVD properties seems to make it a bit faster for me (still slow but usable).

In Eclipse: Window > android Virtual Device Manager > Choose your device > Edit > 'use host GPU' checkbox at bottom.

NOTE: If you are using laptop with nvidia hybrid graphics (GeForce G210M in my case) make sure you have it on high performance before running the emulator. Otherwise Virtual device wont find the graphic card and will crash.

Also apart of "Virtualization Technology" I enabled something called "VTd support" in BIOS. I have no idea what it is or what it does (no description in my BIOS) but either of the above mentioned actions fixed the issue for me

like image 45
Valesh Avatar answered Nov 15 '22 13:11

Valesh


I have the same issue. After making sure everything is properly configured: (VT enabled in BIOS), Intel HAXM driver installed successfully, AVD details are as they should be.The emulator runs even slower than the ARM one.

If you still face the same problem as well. Star the issue here

like image 45
Mahmoud Abou-Eita Avatar answered Nov 15 '22 12:11

Mahmoud Abou-Eita