Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Very slow when attach Unity to Vs2017

Discussion in 'General Discussion' started by Bagazi, Oct 12, 2018.

  1. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    110
    upload_2018-10-12_17-33-28.png

    When I attach unity to vs2017 for debug,It is very slow ,even as no responses.My vs is professional 2017 and my visual studio tools for unity version is 3.8.0.7 ...
     
  2. FMark92

    FMark92

    Joined:
    May 18, 2017
    Posts:
    1,208
    Post computer specs.
     
    Ryiah likes this.
  3. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    110
  4. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    13,872
    Visual Studio is a very heavy application and it has only gotten worse over the last few years. My previous system - an AMD Phenom II X4 965 @ 3.4GHz, 16GB DDR3-1333, and a 1TB HDD - was about the same age range as the system you're running now.

    Upgrading your processor will make a significant difference but the most important part of your computer for Visual Studio is the one you neglected to tell us. Upgrading my old system from a 1TB HDD to a 512GB SSD brought the start time for Visual Studio from 60 to 90 seconds to 6 to 9 seconds.

    Upgrading the processor and memory - to an AMD Ryzen 5 1600X and 16GB DDR4-2666 - brought the start time down even further. I just timed it after a reboot and it's approximately 2 to 3 seconds at most. Everything else involving it including compiling scripts is massively faster than my previous system.
     
    Antypodish likes this.
  5. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    4,573
    I agree, SSD vs HDD makes big difference.
     
    BlankDeed likes this.
  6. BlankDeed

    BlankDeed

    Joined:
    Jul 10, 2018
    Posts:
    292
    Thirded because this is real shiz.
     
  7. BrewNCode

    BrewNCode

    Joined:
    Feb 17, 2017
    Posts:
    354
    So moral of the story, wait for cyber monday and buy the best SSD and put it on your machine.
     
  8. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    110
    Change back to Vs2015,seems much quicker...
     
  9. BrewNCode

    BrewNCode

    Joined:
    Feb 17, 2017
    Posts:
    354
    better to plug in a lighter text editor, like VS Code. It never crushes.
     
  10. YunYunYunYunYun

    YunYunYunYunYun

    Joined:
    May 16, 2019
    Posts:
    1
    I use VS Code attach to Unity5.6,it often crash...I have changed back to VS 2019 preview,it seems better,but too slow....
     
  11. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    13,872
    Most of that will be Unity 5.6. I haven't had a single problem with VS Code on Unity 2017+. That said I don't use it for my main project. I use Script Inspector 3 since it runs right within the Unity editor and is extremely fast and small. Instantly opening scripts is awesome.

    https://assetstore.unity.com/packages/tools/visual-scripting/script-inspector-3-3535
     
  12. 00christian00

    00christian00

    Joined:
    Jul 22, 2012
    Posts:
    778
    Are you using visual studio greater than 15.7.6?
    A lot of people including myself had the same issue.
    Try reverting to this version if you have.
    I also have another installation of Visual studio 2019. Had the same issue initially but after I cleared all the breakpoints and whitelisted the visualstudio executable on the antivirus scan, it works fine now.
    These tips didn't work for me before, so something may have been fixed with 2019.

    https://developercommunity.visualst...38/vs-2017-1581-debugging-extremely-slow.html
     
  13. BrewNCode

    BrewNCode

    Joined:
    Feb 17, 2017
    Posts:
    354
    Is this Script Inspector 3 in Unity 2017?
     
  14. sxa

    sxa

    Joined:
    Aug 8, 2014
    Posts:
    147