Android模拟器有点迟钝。对于摩托罗拉Droid和Nexus One等设备,应用程序在实际设备上的运行速度比模拟器快。在测试游戏和视觉效果时,这是一个问题。
如何使模拟器尽可能快地运行?我一直在摆弄它的参数,但还没有发现一个配置显示出明显的改进。
Android模拟器有点迟钝。对于摩托罗拉Droid和Nexus One等设备,应用程序在实际设备上的运行速度比模拟器快。在测试游戏和视觉效果时,这是一个问题。
如何使模拟器尽可能快地运行?我一直在摆弄它的参数,但还没有发现一个配置显示出明显的改进。
当前回答
启用这个选项对我很有效。
AVD管理器->选择设备并单击“编辑”->启用“使用主机GPU”选项
其他回答
Thank you @zest! Worked like a charm. Some things of note: Need to apply Intel's hotfix for the HAXM to deal with kernel panic issue: http://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager Also, note, if you have more than one abi, you need to uninstall one due to a bug in the latest version of the Android API (r19): https://code.google.com/p/android/issues/detail?id=66740 (remove armeabi-v7a in this case, since you want the x86 abi). Other than the 45-minutes it took me to resolve these, it was an very rewarding exercise in terms of the increased performance of the emulator.
I think it is because clr virtual machine uses cpu directly without code opcode translation. It may be optimization for clr application or may be windows mobile/window phone 7 started on INTEL proccessor. Android platform based on linux and theoretically you can start android on virtual machine in i686 environment. In this case virtual machines such as vmware could execute some opcodes direcly. But this option will be allowed only if you write on the Java. Because the Java interpret their byte-code or precompile it before execution. see: http://www.taranfx.com/how-to-run-google-android-in-virtualbox-vmware-on-netbooks
我注意到模拟器只默认为核心0,而大多数Windows应用程序将默认为“任何”核心。此外,如果你把它放在另一个核心上(比如上一个核心),它可能会让模拟器发疯。如果可以,可以尝试将CPU使用率高的应用程序放在其他CPU内核上,以提高速度。
硬件方面,获得最快的CPU,可以为单核应用程序工作。在模拟器性能方面,超过2个内核可能不会有太大的差异。
Eclipse + Android模拟器一起消耗了大量的RAM。我建议至少使用3g RAM,因为我使用的是一个有2g RAM的系统,它变慢了,因为系统用完了RAM,开始使用页面文件。
我觉得最好的cpu可能会有一个高时钟(只使用时钟作为同一系列cpu的衡量标准),处理非simd操作很好,并有一个涡轮增压机制。没有很多基于java的基准测试,但总体上寻找像压缩和office这样的应用程序基准测试。不要关注游戏或媒体,因为它们深受SIMD的影响。如果你能找到一个Java版本,那就更好了。
谷歌最近发布了一款新的Android模拟器。它比旧的更快更好。你可以在这里找到更多信息。
在今年谷歌I/O(2011)上,谷歌演示了一个更快的模拟器。问题不在于ARM和x86之间的字节码,而在于QEMU执行的软件渲染。我认为它们绕过QEMU的渲染,直接将渲染发送到X服务器。他们展示了一款具有出色性能和fps的汽车游戏。
我想知道什么时候开发者可以使用……