关闭

Android arm模拟器的速度提升方法

标签: androidplaybackvideovmwaretesting
1424人阅读 评论(0) 收藏 举报
分类:

方法一:

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, andqemu does not have a graphics accelerator AFAICT.


如果以上方法都不行,而且慢。可以考虑使用

1)XBOX虚拟android系统或者

2)GenyMotion虚拟机。

3)还不行,对比起,自己花钱买真机。


0
0
查看评论

如何解决android模拟器慢的问题

在android开发的过程,发现android模拟器的速度不是一般的慢,那主要是因为android模拟器默认采用的是arm处理器造成的,这里主要提供两种方法:     ① 利用intel虚拟硬件加速的方式,实现android模拟器的加速,从而解决android模拟器速度慢的...
  • bingqingsuimeng
  • bingqingsuimeng
  • 2015-10-20 15:02
  • 835

让x86的android模拟器能模拟arm架构系统

2016-06-24 15:51:49   来源:eefocus    关键字:x86  android模拟器能  arm架构系统 网上介绍共计三种模拟器比较常用,分别是bluestacks、andy和...
  • dj0379
  • dj0379
  • 2016-08-01 00:49
  • 7782

genymotion-arm-translation-Marshmallow 6.0 官方绿色版兼容包.rar

  • 2018-01-09 10:19
  • 26.36MB
  • 下载

genymotion arm支持文件

  • 2018-01-15 14:03
  • 8.83MB
  • 下载

Windows7中搭建Android x86_64及armv8-a操作步骤

Windows7中搭建Android x86_64及armv8-a操作步骤!
  • fengbingchun
  • fengbingchun
  • 2015-03-20 14:46
  • 13979

[Android分享] Android模拟器Genymotion加载ARM架构so文件

网上介绍共计三种模拟器比较常用,分别是bluestacks、andy和Genymotion,前者支持ARM架构,中者支持远程控制,后者启动速度快,各有优缺点。当然我最熟悉的还是Genymotion,最近使用Genymotion遇到一点问题,比较头疼,绞尽脑汁才找到解决办法。记录下来,分享下,以便以后...
  • wjyyxzzjnws
  • wjyyxzzjnws
  • 2015-04-30 17:06
  • 1146

安卓篇--模拟器加载自己编译的内核

1. 下载Android 模拟器所用的内核源码, 代号为goldfish   2. 下载arm-Linux交叉工具链 3. 编译内核文件 4. 让android模拟器运行在刚编译的内核上 5. 编译自己的hello内核模块 6 将hello.ko载入到内核中 ...
  • sddf313
  • sddf313
  • 2017-08-01 09:13
  • 320

让x86的android模拟器能模拟arm架构系统

网上介绍共计三种模拟器比较常用,分别是bluestacks、andy和Genymotion,前者支持ARM架构,中者支持远程控制,后者启动速度快,各有优缺点。 如果要用genymotion模拟arm的话,还是放弃吧,直接用bluestacks。   houdini 是in...
  • zerokkqq
  • zerokkqq
  • 2016-11-23 09:28
  • 2276

Android模拟器Genymotion添加ARM程序运行环境的方法

2014-02-26 23:32 搞开发也很多年了,还是第一次写blog,给自己留一些记录吧 自从用了Genymotion这个号称快到极致的Android模拟器以后,很多时候调试程序都不想用真机了,SDK带效率低下的官方模拟器因为效率太低也放弃了(据说可以通过配置来改进一直没去尝试过) 通...
  • dj0379
  • dj0379
  • 2016-08-10 10:36
  • 5261

用Android-X86和VMware打造高性能Android开发环境

不知道有多少Android开发着对Android虚拟机的那悲剧的性能有意见,反正我的看法是:那速度实在是太坑爹了! 为什么Android虚拟机比iOS和WP7的虚拟机要慢很多呢?原因如下: 1. Android 模拟器模拟的是 ARM 的体系结构(arm-eabi),而 iOS 和 WP...
  • u010760567
  • u010760567
  • 2013-08-25 14:11
  • 3090
    个人资料
    • 访问:1097260次
    • 积分:13993
    • 等级:
    • 排名:第1064名
    • 原创:97篇
    • 转载:631篇
    • 译文:12篇
    • 评论:89条