为什么Android手机模拟器这么慢?模拟器、手机、Android

2023-09-06 08:30:40 作者:少年,偷心么

相较于iPhone和Windows Phone 7当量它需要永远启动 - 这是不现实的期望这将改善随着时间的推移

Compared to the iPhone and Windows Phone 7 equivalents it's takes forever to start up - is it realistic to expect this to improve over time ?

推荐答案

我不会赌我的钱,这将提高显著。这是因为安卓使用 QEMU 为基础的模拟器的(相对于 IPhone 的模拟的)。

I wouldn't bet my money that it will improve significantly. That is because Android uses a QEMU-based emulator (compared to IPhone's simulator).

由于该 IPhone 模拟,它可以转化指令的本机的处理器code主机上,这是比快在 QEMU 的选择。

Because the IPhone is simulated, it can translate instructions to native processor code on the host machine, which is way faster than the QEMU alternative.

与仿真的巨大优点在于运行在将要在物理设备上运行的模拟器SI实际上是code中的code,那么一个可能的一轮错误是可以避免的。

The great advantage with emulation is that the code that is run on the emulator si actually the code that will be running on the physical device, so a possible round of bugs is avoided.

现在,在改善安卓仿真器的速度,你可以:

Now, on improving the speed of the Android emulator, you could:

打开模拟器,而不是将其关闭每次启动; (RE)在一个开放的仿真器上安装的应用程序几乎是瞬间

open the emulator and not close it for every launch; (re)installing an application in an open emulator is almost instantaneous

使用 - 无 - 启动动画启动仿真器时的命令行开关;这将一定程度上改善了启动时间

use the -no-boot-anim command line switch when starting the emulator; this will improve somewhat the startup time

使用真实的设备来测试您的应用程序

use a real device to test your application with