locked
VisualStudio freezes for over a minute when debugging. RRS feed

  • Question

  • User387004 posted

    Hello, I have Windows10 Pro, with Hyper-v installed. I am using the Google repository for getting the Android emulator, and every time I try to load my project for debugging, VS2019Community freezes for just over a minute. The app loads in the emulator kind of slow, but it's a debug build so I'm expecting some slow down. My project has a 1gb memory space for the Jvm in the Android project file.

    Does anyone have any off the top of the head things to check? or should I expect that a minute or so is not bad? Computer is a Acer Predator Helios 300 315-p1 64gb Ram 3.86ghz cpu. I think the GPU is running on the intel instead of the nvidia, but I don't know if VS is GPU optimized for non game code.

    Anyhow any ideas would be most appreciated.

    Sunday, January 10, 2021 7:33 AM

Answers

  • User371688 posted

    The emulator is very slow in general, especially for PCs with less sophisticated hardware. For a better experience, do try using the Intel Emulators - http://docs.xamarin.com/guides/android/deployment,testing,andmetrics/configuringthex86emulator - but these are still not as good as a real device.

    You can try to improve the performance of your emulator by reading through article:
    Steps To Configure Xamarin.Android Emulator Performance - Part Two

    And there are some similar threads about this, you can check here: https://stackoverflow.com/questions/1554099/why-is-the-android-emulator-so-slow-how-can-we-speed-up-the-android-emulator

    Hope it can help you.


    Xamarin forums are migrating to a new home on Microsoft Q&A! We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A! For more information, please refer to this sticky post.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, January 11, 2021 6:21 AM

All replies

  • User371688 posted

    The emulator is very slow in general, especially for PCs with less sophisticated hardware. For a better experience, do try using the Intel Emulators - http://docs.xamarin.com/guides/android/deployment,testing,andmetrics/configuringthex86emulator - but these are still not as good as a real device.

    You can try to improve the performance of your emulator by reading through article:
    Steps To Configure Xamarin.Android Emulator Performance - Part Two

    And there are some similar threads about this, you can check here: https://stackoverflow.com/questions/1554099/why-is-the-android-emulator-so-slow-how-can-we-speed-up-the-android-emulator

    Hope it can help you.


    Xamarin forums are migrating to a new home on Microsoft Q&A! We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A! For more information, please refer to this sticky post.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, January 11, 2021 6:21 AM
  • User387004 posted

    Excellent! Thanks! I'm sure that anything that I can get from those will make this FAR better than it is now!

    Cheers!

    Monday, January 11, 2021 9:17 AM