8

System Specifications:

  • Windows 11
  • AMD Ryzen 9 5900x
  • RTX 2080 TI
  • ASUS PRIME x570 PRO Motherboard
  • 32GB RAM

The Android Emulator is extremely laggy (No matter the image chosen, I've tried all the way from API 21 to 33 and the problem persists on every image). The animations are not smooth and stutter a lot while animating (It's like they're jumping between the current state and the previous state 1ms ago) and a lot of weird black artifacts show up randomly and I can't even use the recording feature on the emulator (The result is just a black screen)

Black artifact on the emulator Black artifact on the emulator 2

What I've tried:

  • BIOS is updated to the latest version (4403)
  • Chipset driver for AMD processor updated to the latest version
  • Hyper-V, Windows Hypervisor Platform and Virtual Machine Platform are turned off
  • Android Emulator Hypervisor for AMD is installed (Through Android SDK)
  • Using "Hardware" for emulator graphics
  • Reinstalling Android studio
  • Reinstalling Android Emulator Hypervisor
  • Windows has no updates
  • The GPU usage is about 2-3% while running the Emulator
  • Running the Emulator in the Tool window or floating window doesn't have an effect
  • Tried all the renderers in the emulator settings (Even through terminal)
  • Edit: No antivirus installed
Roudi
  • 1,249
  • 2
  • 12
  • 26
  • 2
    The same here. No matter what I'm using. I saw Your configuration - I have Intel + RTX 2080. Maybe a problem in some conflicts in the driver? – don11995 Aug 31 '22 at 13:40
  • @don11995 I tried reinstalling the Nvidia drivers too and the AMD cpu drivers, so not really sure.. – Roudi Sep 01 '22 at 00:40
  • I've resolved "black dots" artifacts by disabling "Hardware Accelerated GPU Scheduling" in Windows Display settings. But scrolling stuttering still remains everywhere where the view can be scrolled. But this stuttering is only on emulators with Android 12+. – don11995 Sep 01 '22 at 11:41
  • I tried that but didn't work :/ @don11995 still getting the black dots and bars – Roudi Sep 02 '22 at 00:12
  • This seems to be happening only on android 12 emulators. – rsanath Sep 26 '22 at 11:46
  • @rsanath on Android 13 as well – user924 Oct 19 '22 at 18:46
  • See the answer in this question: https://stackoverflow.com/questions/73937890/android-studio-emulator-screen-flickers – Pete rudensky Oct 23 '22 at 00:29

4 Answers4

8

I'm working on VS2022 17.4.3 based on an Intel i9-7900k w/64Gb RAM, Hyper-V enabled, and an old-but-gold NVidia GTX 1080Ti (driver 577.56) running in two 4k monitors.

What solved my problem? I just changed the settings of the virtual device from "Auto"-"Auto" to "Angle D3D11"-"Auto", as shown below:

enter image description here

IMPORTANT:

  1. After changing these settings, you MUST power off the virtual phone and close it.
  2. In my case, I also deleted the selected device and reinstalled it from VS2022 (Tools - Android - Android Device Manager). The Direct-3D settings was still activated as I had set.

I hope it can help someone.

David BS
  • 1,822
  • 1
  • 19
  • 35
1

I notice same issue. Solved with change emulator Graphics option to Software - GLES 2.0 that will fix the glitch issue, but you will notice decrease performance. this issue has submit to google issue tracker.

enter image description here

0

You need to make sure that AMD virtualization is enabled in your BIOS. Please post a screenshot of your CPU Performance screen inside Task Manager. I'm looking for it to say that virtualization is enabled, like this:enter image description here

Also, did you make sure that Hyper-V is completely disabled? And Core Isolation turned off? There are a bunch other apps that could be causing it to turn back on. Please refer to Google's instructions

user496854
  • 6,461
  • 10
  • 47
  • 84
0

just solved a similar problem, managed to fix after completely uninstalling android studio (https://stackoverflow.com/a/39953746) and deleting the gvm.sys file from the windows / system 32 / drivers folder