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

What is Profiler.CollectGlobalStats ??

Discussion in 'Editor & General Support' started by Bharat_, Jan 24, 2018.

  1. Bharat_

    Bharat_

    Joined:
    Jan 15, 2018
    Posts:
    14
    I am having a bit of a performance issue here.... Can anyone help me understand what Profiler.CollectGlobalStats is ??? Refer to the Image :-

     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,842
    If I'm not mistaken, that's time taken by the profiler itself. You should ignore that; it won't be there in the built game.
     
  3. Bharat_

    Bharat_

    Joined:
    Jan 15, 2018
    Posts:
    14
    Thanks Mate :D
    Any Tips for Camera.Render issue , it grew more....
    thanks again
     
  4. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,842
    Well, twist it open and see where the time is going.

    Rendering is naturally going to be a big chunk of time. You reduce it mainly by reducing draw calls — google for tips on that. The short version is, minimize the number of different materials you're using, as every material means another draw call.