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

Random EditorLoop spikes in the Profiler

Discussion in 'Editor & General Support' started by LeGeND_Darkstar, Jun 10, 2019.

  1. LeGeND_Darkstar

    LeGeND_Darkstar

    Joined:
    Jan 20, 2019
    Posts:
    1
    I've been working on a game for a while and recently I've noticed that there are random FPS spikes when I test it. After some searching online and failure after failure, I decided to test something.
    I created a brand new game which contains literally nothing in it, it is literally just a camera which is rendering nothing. After running it for a second I can see many spikes forming in something called "EditorLoop".
    I have no idea what can be causing this and whether this could possibly be an obvious cause for FPS spikes in my game, but I'd rather ask here before I do anything else. ProfilerScreenshot.PNG
    In case anyone knows anything similar to this, in my proper game I occasionally have "PlayerLoop" suddenly spike similarly to the example shown. My proper game also has "EditorLoop" spikes as well. If it helps I'm using Unity version 2019.3.0a5, and I upgraded my game from 2018.3.2f1.

    I am new to Unity in terms of troubleshooting these types of problems, so any help will be appreciated. I hope the information supplied is good enough.
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Unity 2019.3 is currently a alpha version and not made for production.
    You can make a bug report and post that bug report id to the 2019.3 Alpha forum.
    https://forum.unity.com/forums/2019-3-alpha.337/

    In general this editor spike should not make a problem in the build version.
    You can make a debug build and let the Profiler connect to it so you can get a proper reading from the build game.
     
    alexeyzakharov likes this.
  3. alexeyzakharov

    alexeyzakharov

    Unity Technologies

    Joined:
    Jul 2, 2014
    Posts:
    506
    Please enable editor profiling (Profile Editor toggle in the Profiler Window toolbar) to see what is happening inside "EditorLoop" sample.
    "EditorLoop" marker is Editor-specific and designated to show Editor only activities like drawing editor windows, updating assets, etc. It doesn't exist in player builds.
     
    Joe-Censored likes this.
  4. pavelkingx

    pavelkingx

    Joined:
    Mar 3, 2021
    Posts:
    2
    I have the same problem

    upload_2021-3-3_9-22-56.png
     
  5. Xeniu

    Xeniu

    Joined:
    Mar 22, 2013
    Posts:
    3
    I had similar bug where while in playmode, when you selected in hierarchy gameobject with attached NavMeshAgent which was inRoute it caused EditorLoop spikes. After some googling for unrelated bug i found out that windows 8 compability mode in unity hub was the issue.
     
  6. Fernando-Ferreira

    Fernando-Ferreira

    Joined:
    Nov 9, 2015
    Posts:
    13
    Similar problem happening in newer 2021.3.19f1 version, random 98% usage spikes