question

SebastianKruse-7538 avatar image
0 Votes"
SebastianKruse-7538 asked RobCaplan edited

Android Emulator extremly laggy and slow on new system?

A few days back I switched to a new system and even after a few days of trying, I cannot make the Android Emulator run smooth. Previously I have used a Intel based system and used Intel HAXM for the Hardware acceleration. My new system however is using a AMD CPU and even if the Studio does no longer complain about missing Hardware acceleration, the Emulator is very slow - espacially when using SkiaSharp components in the views. I cannot use Hyper-V because I also have to run VMWare virtual machines and sometimes also VirtualBox machines. However Windows-Hypervisor-Platform is active and the Driver for AMD Processors is installed from the Android SDK menu (also Intel HAXM is installed from here because VS told me so, but I assume this should not be necessary on a AMD platform?). Is there something else I have todo? The lag gets way worse when the debugger is attached to it.

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JessieZhang-2116 avatar image
0 Votes"
JessieZhang-2116 answered SebastianKruse-7538 commented

Hello,


Welcome to our Microsoft Q&A platform!

The emulator is very slow in general. And we usually try to improve the performance of the Android emulator by using special x86 virtual device images in conjunction with the virtualization features of your computer.

For more details, we can check Accelerating Android emulators on Windows.

Of course,we often use the following methods:

  1. Use genymotion emulator ;
    Once your Genymotion virtual device is actually running, then Xamarin will see it as a 'physical device' that it can deploy to.
    78046-image.png


  2. use actual android device;
    In order not to let the simulator affect the speed of our computer, we generally use the actual mobile phone. General Android test machine, the price is not expensive, and can meet the needs of normal testing.


  3. Increase the size of your hard disk

This will certainly alleviate the problem of computer lag to some extent.

Hope it can help you.

Best Regards,

Jessie Zhang


If the response is helpful, please click "Accept Answer" and upvote it.


Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.








image.png (68.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.