Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[solved] Unity very slow on start, profiler says 96% LogStringToConsole

Discussion in 'General Discussion' started by JayadevHaddadi, Nov 30, 2021.

  1. JayadevHaddadi

    JayadevHaddadi

    Joined:
    Nov 9, 2020
    Posts:
    12
    Hi all,

    Randomly when I press Play my editor freezes for 20-90 sec.
    I tried changing "Enter Play Mode Settings" and "Reload Scene", sometimes it seems to help and sometimes not.
    I finally could catch the profiler just after it unfreezed. This is what I got:

    upload_2021-11-30_15-26-55.png

    LogStringToConsole is taking 96.3% of the 20 seconds to start up with 15000 calls.
    To me it sounds like logs, but I don't even have logs in my GameManager.Start().

    Any idea why this is occurring?
    Thanks
     
  2. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,355
    Are you getting error messages in the console?
     
    Joe-Censored likes this.
  3. JayadevHaddadi

    JayadevHaddadi

    Joined:
    Nov 9, 2020
    Posts:
    12
    Sorry all.
    I confused this error with another error.
    Sometimes I do get lags without any reason.
    But this one was ACTUALLY that there was a coroutine stuck printing out..... very silly mistake of me. So sorry.
    Can this thread be taken down please?:)
    I try to catch the right one next time and post... :)
     
  4. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    I added a "[solved]" to thread title
     
    Joe-Censored likes this.