Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Android Studio emulator is extremely slow?

Tags:

I'm using Android Studio version 3.2 and I have 12GB ram and double graphic cards(NVIDIA and INTEL).

I already installed HAXM and also forces emulator.exe and qemu-system-x86_64.exe to work with NVIDIA.

But still the emulator is extremely slow

like image 889
Ayoub k Avatar asked Oct 02 '18 01:10

Ayoub k


People also ask

Why does Android Studio open so slowly?

According to Android Studio's official system requirements, it takes at minimum 3 GB RAM to run smoothly. Honestly, its a lot and I believe that is the biggest cause of being it too slow all the time. The android developers are always complaining about the speed of Android Studio and how its slow ALL THE TIME.

How much RAM should I give the Android emulator?

However, the heap size should not be less than 12 MB. o Depending on your computer specs, the recommended ram size is in the range between 512 MB – 1024 MB. Although you can give more ram to the emulator but an actual android device would normally have 512 MB – 1024 MB for ram only.

Which emulator uses least RAM?

If you are looking for the lightest Android emulator, the Droid4x is your best choice. It can run even on 1GB RAM. It supports all windows up to 7, so it may be a little old. But it sure can do the job.


2 Answers

My Nexus 5X API 24 and 25 Emulators works well but Nexus 5X API 26 and above are very slow, I check memory and CPU costs in Android Profiler it shows much higher than others, even simulators have the same density.

I think currently we often choose latest Emulators (from API 26 - Android 8.0 and above) ONLY for testing code that relates to OS features changes, for stable and performance testing, we should choose Emulators equal or below API 25 - Android 7.1.
I reported this problem to Google, hope they will make some enhancements soon.

like image 158
Think Twice Code Once Avatar answered Oct 04 '22 20:10

Think Twice Code Once


Try this:

Go to the emulator settings and try to select different values for OpenGL ES Renderer:

enter image description here

like image 24
Zafar Iqbal Avatar answered Oct 04 '22 20:10

Zafar Iqbal