即使进行了所有优化,Android Emulator仍然落后 [英] Android Emulator laggy even with all optimizations

查看:113
本文介绍了即使进行了所有优化,Android Emulator仍然落后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 已启用HAXM的7.1.0版本,并且我验证了模拟器运行时它是否可以正常工作
  • 仿真器使用的是Nvidia GPU,但在任何给定时间都几乎不使用7%的GPU.
  • 我有27.3.1的仿真器版本(最新)
  • 尝试过x86图像和x86_x64图像
  • 我尝试了硬件加速
  • 我尝试了软件加速
  • 我将模拟器的内存提高到4GB(我有20 GB)
  • 我将仿真器的CPU优先级设置为实时
  • 我什么都没有,但Android Studio和仿真器正在运行
  • 仿真器运行极其缓慢且缓慢,从活动转到另一个时甚至会显示黑屏
  • 从此永远都是这样
  • 我尝试删除整个Android SDK并从头开始安装
  • 我在BIOS中启用了英特尔虚拟技术
  • 我尝试过Google Apis与没有Google Apis模拟器
  • 我尝试了Nexus 5,X,Pixel 1、2,XL和android P,O,16以及所有落后设备
  • HAXM Enabled version 7.1.0 and i verified that it's working when the emulator is running
  • The emulator is using the Nvidia GPU however it's barely using maximum 7% of the GPU at any given time
  • I have 27.3.1 of Emulator version ( Latest )
  • Tried x86 image and x86_x64 image
  • I tried hardware acceleration
  • I tried software acceleration
  • I bumped the emulator ram to 4GB (I have 20 GB)
  • I set the emulator CPU priority to real time
  • I have NOTHING but Android Studio, and emulator running
  • The emulator is running horribly slow and laggy and even gives a black screen when going from activity to another
  • This has been the case since forever
  • I tried deleting the entire Android SDK and installing from scratch
  • I have intel virtual technology enabled in BIOS
  • I tried Google Apis vs none Google Apis emulators
  • I tried Nexus 5, X, Pixel 1, 2, XL with android P, O, 16 and all laggy

推荐答案

这是帮助我使用Android 9模拟器的原因:

This is what helped me with my Android 9 emulator:

  1. 使用Google Play x86图像而不是Google API x86图像,因为前者有一个通知"Preparing for setup ..",该通知从未完成.

  1. Use Google Play x86 image instead of Google API x86 image, because the former had a notification "Preparing for setup.." which never finished.

首次启动仿真器后,请进行初始google设备设置(跳过可以跳过的内容.)并设置SD卡(作为外部存储设备).

After launching the emulator first time, going through the initial google device setting (skipping what can be skipped..) and setting up the SD card (as an external storage).

如果正在运行某些应用程序更新,请等待它,然后强制退出"Google Play服务"应用程序.如果仿真器在重新启动后再次变慢,则可能需要在每次启动后执行此操作.

If there are some app updates running, wait for it and then force quit 'Google play services' app. If the emulator will be slow again after reboot, you might want to do this after every launch.

在设置中禁用移动数据,因为它试图一次又一次地连接,用尽了所有CPU. CPU有助于渲染,因此,如果没有可用的CPU,它将变得很慢.

5.转到仿真器设置/高级,将渲染的OpenGL ES设置为Desktop native OpenGL,将OpenGl ES API级别设置为Renderer maximum,然后重新启动仿真器.就我而言,使用自动选择/自动检测的性能要差得多.

5. Go to emulator Settings/Advanced and set OpenGL ES rendered to Desktop native OpenGL and OpenGl ES API level to Renderer maximum and reboot the emulator. In my case, using autoselect/autodetect had far worse performance.

这篇关于即使进行了所有优化,Android Emulator仍然落后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆