Android arm模拟器的速度提升方法
2012-03-31 06:43
225 查看
方法一:
emulator -cpu-delay 0 -no-boot-anim -cache ./cache -avd avd_name
the first two are obvious. the third one will make the memory of the emulator kind of persistent. you can point it to any file that does not get destroyed by boot (such happens with /tmp) it's like a always-on hibernating device.
Try to use a smaller resolution for your emulator as for example HVGA. The emulator gets slower the more pixels its needs to render as it is using software rendering.
Also if you have sufficient memory on your computer, add at least 1 GB of memory to your emulator. This is the value "Device ram size" during the creation of the AVD.
Also set the flag "Enabled" for Snapshots. This will save the state of the emulator and let it start much faster.
The emulator is running actual ARM opcodes. It uses
qemu,
which is a virtualization system akin to a VirtualBox or VMWare, to accomplish this. That approach maximizes the fidelity between the emulator and real-world devices. Its cost is the ARM->Intel opcode conversion. The only way to significantly speed that up
is to speed up the CPU that runs the emulator.
I have not done an exhaustive analysis, but I do not get the sense that qemu and the emulator use multiple cores. Hence, "a faster computer" is governed more by the speed of a single core than how many cores it has.
To the extent possible, I would develop "games and visual effects" on actual Android hardware, using the emulator for testing configurations that you do not own (e.g., QVGA). For example, I've done a reasonable amount of work on video playback apps, and I only
bother developing those on hardware, because video playback (and presumably some games) requires graphics acceleration to work well, and
qemudoes
not have a graphics accelerator AFAICT.
如果以上方法都不行,而且慢。可以考虑使用
1)XBOX虚拟android系统或者
2)GenyMotion虚拟机。
3)还不行,对比起,自己花钱买真机。
相关文章推荐
- 提升基于英特尔®架构的 Android* 模拟器的速度
- 提升基于英特尔®架构的 Android* 模拟器的速度
- Android 模拟器 提高速度的方法--搜集
- 【安卓开发】【转载】提升基于英特尔®架构的 Android* 模拟器的速度
- 提升基于英特尔® 架构的 Android* 模拟器的速度
- 提升基于英特尔®架构的 Android* 模拟器的速度
- 提升基于英特尔®架构的 Android* 模拟器的速度
- 提升基于英特尔®架构的 Android* 模拟器的速度
- Android批量插入数据库提升速度(9.9)
- Android 4.3 安全提升,Set-UID-Root 权限提升不再起作用,原先的ROOT方法将失效
- [转载]提升SQLite数据插入效率低、速度慢的方法
- Android快速搭建模拟器环境另类方法(绕过了官网SDK Manager下载)
- Maven 提升下载jar速度方法: (每秒1MB左右)
- asp网页提升速度方法5则
- asp网页提升网页速度方法5则
- Android模拟器访问本地IIS冲突问题处理方法
- android GPR定位方法(要在真实的手机上测试,模拟器上不管用)
- 更改android AVD模拟器创建路径位置的方法
- 提升SQLite数据插入效率低、速度慢的方法