eclipse 更快地运行 android 模拟器 - nexus 4 配置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16010295/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 20:22:02  来源:igfitidea点击:

Run android emulator faster - nexus 4 configuration

androideclipseemulation

提问by mobile86

I found some ideas how to run android emulator faster, but for Nexus 4 configuration still it doesn't work correctly.

我发现了一些如何更快地运行 android 模拟器的想法,但对于 Nexus 4 配置,它仍然无法正常工作。

My PC: AMD Phenom II X4 955 (4 x 3,20Ghz) 4 GB ram memory ATI 5750 Windows 7 64bit

我的电脑:AMD Phenom II X4 955 (4 x 3,20Ghz) 4 GB ram 内存 ATI 5750 Windows 7 64 位

Virtual Device Configuration: Name: Nexus 4 ;) Device: 4.65" 720p (720 x 1280: xhdpi) Target: Android 4.2.2 Skin: Display a skin with hardware control - checked RAM: 756 VM Heap: 64 Internal Storage: 200MiB

虚拟设备配置:名称:Nexus 4 ;) 设备:4.65" 720p (720 x 1280: xhdpi) 目标:Android 4.2.2 皮肤:显示具有硬件控制的皮肤 - 检查 RAM:756 VM 堆:64 内部存储:200MiB

PC is very fast updated but without SP1 - because after SP1 some games and application were working slower for me then before SP1.

PC 更新速度非常快,但没有 SP1 - 因为在 SP1 之后,一些游戏和应用程序对我来说比 SP1 之前运行得更慢。

So, main issue is: emulator works all the time with 'lag'. For ex: I clicked 'menu' button and then I was waiting 3s to see list of apps. And everything on emulator is working like this. It is very tiring to make good tests.

所以,主要问题是:模拟器一直在“滞后”的情况下工作。例如:我点击了“菜单”按钮,然后我等了 3 秒才能看到应用程序列表。模拟器上的一切都是这样工作的。做一个好的测试是很累人的。

Do you have some ideas how can I improve it?

你有什么想法我该如何改进它?

Best Mob86.

最好的 Mob86。

回答by Nicolas Tyler

The emulator runs at a usable speed with top end machines, but has a slight delay on older ones. There is no need to run the AVD on a Virtual Machine. But it seems to be faster that way. The emulator takes long to startup but you don't have to close it after testing, the reason for this is it is starting up the android OS, much like booting windows.

模拟器在高端机器上以可用的速度运行,但在旧机器上有轻微的延迟。无需在虚拟机上运行 AVD。但这样似乎更快。模拟器需要很长时间才能启动,但测试后您不必关闭它,原因是它正在启动android操作系统,就像启动Windows一样。

What you can do?

你可以做什么?

  • Disable boot animation (speeds up boot time)
  • Use Host GPU (use with nvidia cards, renders with your GPU)
  • Snapshot (boots up from snapshot of previous boot)
  • 禁用开机动画(加快开机时间)
  • 使用主机 GPU(与 nvidia 卡一起使用,使用您的 GPU 渲染)
  • 快照(从上次启动的快照启动)

Further info can be found here.

可在此处找到更多信息。

回答by neworld

I am using: http://www.genymotion.com/this is virtual android device based on VirtualBoxand run faster than nexus 4.

我正在使用:http: //www.genymotion.com/这是基于虚拟 android 设备VirtualBox并且运行速度比 nexus 4 快。

回答by Ranjith Kumar

Start the emulator using this cmd line

使用此 cmd 行启动模拟器

emulator -no-boot-anim @your_emulator

模拟器 -no-boot-anim @your_emulator

It reduce 50% boot time..

它减少了 50% 的启动时间..