Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作一个安卓应用程序。当我在具有 512 MiB RAM 的模拟器上运行它时,一个简单的活动需要 3 秒才能完成。这个时间在真实设备上会更低吗,因为 3 秒太长了!如果它会更低,那么由什么因素(估计会做)?谢谢。
这真的取决于你在做什么,但根据经验,设备比模拟器快得多。
模拟器很慢,因为整个 ARM 进程架构是通过软件模拟的,这在 Android 系统和计算机处理器之间增加了一个(大)额外层。
尝试使用 x86 intel 映像之一来获得更接近设备速度的更快模拟器。
但是,没有模拟器可以为您提供与设备相同的速度。