Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intel HAXM 为 Android 模拟器加速 #2

Open
rainyear opened this issue Feb 1, 2015 · 0 comments
Open

Intel HAXM 为 Android 模拟器加速 #2

rainyear opened this issue Feb 1, 2015 · 0 comments
Assignees

Comments

@rainyear
Copy link
Owner

rainyear commented Feb 1, 2015

使用 Android 模拟器测试程序的时候,模拟器的速度慢到令人抓狂,以至于之前用 cocos2d-x 调试游戏程序的时候,不得不用从来没用过的 Xcode,用流畅的 iOS 模拟器来调试。

最近注意到 Crosswalk project,可以结合 Cordova 写 H5 App,但是 Cordova 编译安装的速度太慢,在搜寻实时编译的解决方案时却看到了 Intel Hardware Accelerated Execution Manager,即针对模拟器的硬件加速方案(参考使用 Intel HAXM 为 Android 模拟器加速,媲美真机)。

可以通过 Android SDK Manager > Packages > Extras > Intel x86 Emulator Accelerator(HAXM installer)选择安装:

2015-02-01 11_15_04

需要注意的是在 OS X 系统中只是将 installer 下载到 /path/to/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM_xxx.dmg,要手动安装才可以。

然后在创建模拟器时选择CPUIntel Atom x86;同时如果是 Crosswalk + Cordova 模式下开发,还需要单独下载crosswalk-cordova-xxxx-x86才可以编译生成 x86 版本的 apk。

从最终效果来看,确实加速很多,但别说媲美真机,还是不如 iOS 模拟器流畅。。。另外 Cordova 编译速度慢的问题,还是没有好的解决方案:(

@rainyear rainyear added the Note label Feb 1, 2015
@rainyear rainyear self-assigned this Feb 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant