gpt4 book ai didi

Android 模拟器在 Ubuntu 20.04 上非常慢

转载 作者:行者123 更新时间:2023-12-05 06:55:52 24 4
gpt4 key购买 nike

我的 Android 模拟器在我的 Ubuntu 机器上运行很慢。我需要它运行得更快,因为一些应用程序的速度变慢了很多,以至于它们改变了它们的行为(它们使用相机)。

系统规范:

-x86_64
-Intel(R) Core(TM) i7-5600U CPU @ 2.60 GHz
-20GB Ram
-512Gb HDD

我使用 Ubuntu 20.04 和 Android Studio 4.1.1(全新安装)。我使用这个 AVD:Pixel2 1080 x 1920: 420dpi API 28 Android 9.0 (Google X86_ARM) CPU/ABI: x86在扩展菜单中,我选择了图形:Hardware - GLES 2.0。我还禁用了 GPS、audioInput 和 audioOutput,但没有提高性能。我没试过this ,因为选择硬件 - GLES 2.0 对我有用并且 avd 正常启动(但仍然很慢)。

但其他系统镜像同样慢。

我试过:

sudo modprobe msr
sudo rdmsr 0x3A

它返回 5,因此 VT-X 已启用

是硬件瓶颈,还是配置错误?也许是 HDD 减慢了模拟器的速度?我尝试在 Windows 上运行模拟器,速度快得离谱。 windows机器虽然更强大。

2020 年 12 月 11 日更新:我还使用以下命令验证了我的 KVM 安装:

./emulator -avd Pixel2Api28Arm -accel-check

它返回了这个:

28Arm -accel-check
accel:
0
KVM (version 12) is installed and usable
accel

所以这似乎不是问题。

最佳答案

我遇到了同样的问题(KVM 工作,但 x64 主机上的 x64 模拟器很慢),并找到了解决方案 here , 即禁用自动快照创建。

Run your emulator, and click on the three dots (...) to open the settings:

In the settings, click "Snapshots":

Switch to the "Settings" section on top:

Set "Auto-save current state to Quickboot" to No:

It'll ask you to restart the emulator, click Yes:

关于Android 模拟器在 Ubuntu 20.04 上非常慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65254168/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com