Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Emulator (from Android Studio) lagging

Searched for a solution, didn't find anything helpful.

I have a GTX 970 and an i5 4690k OC 4.2 GHz. The Emulator from Android Studio is lagging as hell and I don't know why.

Intel HAXM is installed, 4G Ram is allocated to the Android Device. I just can't find a solution. Btw. I don't think my processor is too bad since I can run 2 VMs at once and the Emulator works fine on my XPS 15 9560 (i7 7700HQ & GTX 1050)

Does anyone have an idea what to do?

Config:

enter image description here

enter image description here

Also tried using Software for graphics emulation, much more slower. Btw for reference this runs in the background and doesn't seem to resolve: enter image description here

The SDK usedenter image description here

CPU Usage:

enter image description here

Also, I installed the AVD also on the same system on Hackintosh:

CPU: 10% and works smoothly

enter image description here

like image 640
filip Avatar asked Jun 01 '26 20:06

filip


1 Answers

Cut the RAM way back. There is no Android device of note that has 8GB of RAM. Something in the 1-2GB range should be fine.

Cut the VM heap way back. For example, my emulator images use 48-128MB, not 8GB.

If those don't help, experiment with a lower-resolution emulator (e.g., Nexus 4 1280x768) and see if that changes your results.

like image 77
CommonsWare Avatar answered Jun 03 '26 09:06

CommonsWare