简体   繁体   中英

Low FPS on Android emulator

First of all, you need to know that I have a very powerful computer so that's not the problem.

I tried making a black screen without anything on it but an FPS counter, with OpenGL and Canvas, but the app doesn't go over 10-11 FPS.

I am just lost, I don't know what the problem is, I checked and it's not the render or the update function...

thanks for the help.

I am on windows 7 64 bit BTW.

8 years later and i have the answer.

open the AVD manager, scroll down to emulated performance, change it from "Automatic" to "Hardware - GLES 2.0", if still not performing show the advanced settings and set it to "Cold boot" this changed it from like 8-12 fps to a solid 30 fps non stop.

I'm more inclined to say that it is a fault of the Emulator than your system. It is extremely slow for me as well, even doing general app debugging. Not surprised on your frame rate. The Intel x86 Image might make a difference, but I usually don't see much improvement even with that.

You can create x86 virtual machine. See

Android-x86 - Porting Android to x86

ISO image

I've found that I get better performance out of the Emulator when I set the processor afinity to all through Windows Task Manager

Here are some tips which can speed up the emulator significantly:

  • Give 1GB of RAM (or even more) to your AVD. Don't try to emulate the amount of RAM of a real device, it is generally useless and can amazingly slow down the emulator.
  • Emulate Android 2.3.3 , which boots and runs faster on the emulator than the previous and next versions (by the way, never emulate Android 2.1 or 2.2 if you use SQLite databases. The SQLite implementation was very slow even on real devices).
  • Don't use high screen resolutions and densities unless for final testing. Use the smallest resolution available and set the LCD density to something low (in the mdpi range).

Well, this might not be an alternative for everyone but for me it's perfect! Use the Bluestacks Player . it runs Android 2.3.4 and is very fluent and fast. Sometimes even faster than a normal device. The only downsize is, that you can just test Apps on the API Level 10 and just on one screen size, but it's perfect just for testing if it's working or not. Just connect the Player with the adb by running

adb connect 127.0.0.1 

(Its always the same IP adress)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM