Skip to content

Instantly share code, notes, and snippets.

@srishanbhattarai
Last active April 29, 2024 15:37
Show Gist options
  • Save srishanbhattarai/463df6e2b1de558c812c296193498e5d to your computer and use it in GitHub Desktop.
Save srishanbhattarai/463df6e2b1de558c812c296193498e5d to your computer and use it in GitHub Desktop.
Android Emulator CPU/Memory high usage solution
https://stackoverflow.com/questions/37063267/high-cpu-usage-with-android-emulator-qemu-system-i386-exe
The cause of the constant CPU usage is the sound. If you do not need sound in your emulator you can disable it by editing the AVD's config file.
Change/add those two lines
hw.audioInput=no
hw.audioOutput=no
On Linux/Mac the file is located at ~/.android/avd/<AVD_Name>.avd/config.ini
On Windows the file is located at C:\Users\<username>\.android\avd\<AVD_Name>.avd\config.ini
@dav1app
Copy link

dav1app commented Aug 30, 2022

Thanks a lot! This reduced almost 40% and perceptively reduced interactions with the emulator!

@neoacevedo
Copy link

Mmm... not at all efective.

@slodhi786
Copy link

perfect solution. really reduced almost 30 to 40%

@RaminBgrn
Copy link

awesome solution.
it was reduced 30% of memory usage

@hend-elsahli
Copy link

worked! thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment