Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

90 second wait on entering Play mode

Discussion in 'Editor & General Support' started by Kaldrax, Nov 6, 2018.

  1. Kaldrax

    Kaldrax

    Joined:
    Sep 14, 2017
    Posts:
    44
    Heyo. Sorry if this has been answered somewhere else but I couldn't find anything on it.

    I'm getting a 90 second wait time every time I try to enter play mode.

    Did some deep profiling, and found that it's WebSocket.Connect that's taking so much time.

    Attached image below.

    Any ideas?
     

    Attached Files:

  2. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,664
    Do you get these kinds of delays on a blank project?

    There's a very good chance that something your doing in your own code (or perhaps having tons of gameobjects) is causing the slowdown, so try and get an idea what steps happen at awake or start methods in your code, and what is calling websocket methods immediately, and perhaps delay it. Try blank scenes, with isolated scripts or areas of your game, to narrow down what's causing it.

    If it's a plug in or asset, consider alternatives or changing the way it works if you have source access.

    That's all I can think of off the top of my head.
     
  3. Kaldrax

    Kaldrax

    Joined:
    Sep 14, 2017
    Posts:
    44
    Got it!

    It's Allegorithmic's Substance Unity plugin! I'm not sure why it's suddenly causing problems, though.
     
    MD_Reptile likes this.
  4. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,664
    Ahh cool. Glad you got it sorted out!
     
  5. Kaldrax

    Kaldrax

    Joined:
    Sep 14, 2017
    Posts:
    44
    Thanks for your help, Reptile :)
     
  6. CloudyVR

    CloudyVR

    Joined:
    Mar 26, 2017
    Posts:
    714
    I have similar issues, but believe it's steamVR related.
     
  7. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,664
    No problem, good luck!