Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

FPS drop related to scripts

Discussion in 'Editor & General Support' started by matiasges, Aug 3, 2021.

  1. matiasges

    matiasges

    Joined:
    Jan 24, 2021
    Posts:
    64
    Apparently my scripts give me a sharp drop in my FPS all of a sudden. Then it goes back to normal until it happens again.




    It has to do with EditorApplication.Internal_CallUpdateFunctions () for what the profiler is telling me.

    But if I go to the Hierarchy view it says is is the GC alloc:



    Is there a way to improve this or is it something else that I'm missing?
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    6,136
    EditorLoop is all the Unity Editor itself. This won't be present in your builds. Try profiling a built version of your game.
     
  3. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    1,497
  4. matiasges

    matiasges

    Joined:
    Jan 24, 2021
    Posts:
    64


    What would be this:



    The other text that appears is an asset I use:




    But no idea what means the first one
     
  5. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    1,497
    Sounds like some C# event is being triggered. You could try contacting the developer of that uNode package about this.
     
  6. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    1,497
    Also, maybe it becomes clearer when selecting some of the other N/A entries and checking their call stacks?
     
  7. matiasges

    matiasges

    Joined:
    Jan 24, 2021
    Posts:
    64
    All of them say the same.
    So the second is related to uNode, but what about the first one?
     
  8. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    1,497
    As I said, that looks like a C# event invocation. I can't tell much more from that screenshot. Maybe there is more to that call stack or maybe Deep Profiling can show more here?
     
unityunity