Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Improve Android Emulator Performance on Windows 7 x64 [duplicate]

Possible Duplicate:
Slow Android emulator

I'm running on Eclipse Helios on Windows 7 x64. I have a Core 2 Duo 2.0 Ghz with 4.0 GB which I think should be enough, since I've never have any performance problems with developing tools.

When I run my first app on the Android Emulator (both 2.3.3 and 3.0) it took at least 5 minutes to load the OS and at first it didn't even run the HelloAndroid app. Even when I managed to run the application, the performance was unbareable.

The strange things is that is not a OS performance issue. This is the CPU and Memory status while executing:

CPUPerformanceWhileRunning

I've tryed various things to improve the performance, but no major improvement is shown. I think I'm missing something.

Things I have tryed:

On AVD Manager

  1. Device RAM size to 512.
  2. Resolution to 640 x 480.
  3. Snapshot enabled.

On Project preferences\Android

  1. \Launch\ -cpu-delay 0 -no-boot-anim -cache ./cache -avd Android3

Things I can't tryed: - Deploying on a device (don't have any).

By the way, I've had the same problem on a MAC Mini 2.66 Ghz 2 GB but these settings made the difference.

Anyone can give any tips to improve this lame performance?.

like image 738
mikywan Avatar asked Apr 07 '11 03:04

mikywan


People also ask

Why is my android emulator so laggy?

The Android Emulator is very slow. The main reason is because it is emulating the ARM CPU & GPU, unlike the iOS Simulator, which runs x86 code instead of the ARM code that runs on the actual hardware.


1 Answers

Unfortunately, you are not alone on this.

There doesn't seem to be a good solution, but a few tips:

  • Start the AVD directly, not through the IDE
  • Leave the AVD running instead of closing/restarting when you change code
  • Debug on a real device. Yes, you lose testing on multiple versions and resolutions, but for many of us, it's the only bearable solution.

Hope this helps a bit...

like image 194
Phil Lello Avatar answered Oct 24 '22 00:10

Phil Lello