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

Question Profiler Others section having spikes

Discussion in '2D' started by KaveeM2007, Apr 12, 2023.

  1. KaveeM2007

    KaveeM2007

    Joined:
    Jan 18, 2022
    Posts:
    21
    Hi Guys,

    After I improved graphics in my game, I found some performance issues in the editor when profiling, I can't understand what the problem really is so thought it would be better to ask for some help. As Always I hope you guys would save me..

    So I have attached some screen shots of my profiler and a shader graph,
    As they have been named, two screen shots are for the "others" section in the profiler while the Unity Remote was connected and Not, one is about Rendering. Other one is the custom shader (Sprite Lit) I made with shader graph to make my sprites glow. Almost my all sprites and 2 particle systems(they are the only ones) in the scene use this shader. I also have some bloom to make it look better.

    So guys, what do you think would be causing these spikes in the others section?

    Do notice that some times it runs over 100 FPS according to stats menu in the play mode window, but some times its belove 20 FPS ( I also attached 2 screenshots of editor play mode with Unity Remote attached and not)

    I also have some post-processing effects (Bloom, vignette, panini projection, color adjustments)

    I also tried building it and playing in my phone, I didn't have any FPS displays but it looked and felt fine.

    So my Questions are,
    1. What could be the reasons to have spikes in my profiler for "Others" section
    2. If you know, what could I do to fix them
    3. Could my shader cause performance issues

    Every one of your ideas are appreciated...
     

    Attached Files:

  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,507
    https://docs.unity3d.com/Manual/ProfilerCPU.html

    You can deep profile to find more detail but it can also be the Editor or Profiler itself. The visual part is only a crude representation, there's more detail in the hierachy view.

    You can run the profiler out-of-process and/or connect it to the project running on a device to separate those overheads.
     
  3. KaveeM2007

    KaveeM2007

    Joined:
    Jan 18, 2022
    Posts:
    21
    Thank you