Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Why Editor loop haust so mush?

Discussion in 'Editor & General Support' started by Bagazi, Jun 16, 2021.

  1. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    611
    upload_2021-6-16_10-54-7.png

    When I run game in editor,the fps dropped to 30 around,I found there is a big haust in Editor loop, why it hausts so much and how to slove it?
     
  2. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,193
    You should mostly ignore that. It's the Unity editor doing a lot of work. Some of that performance is possibly just the profiler itself taking a lot of resources.

    Profiling the game in the editor is okay for some quick spot checks, but if you're really trying to do serious profiling work, you should always profile a build of your game, not the game running in the editor. There's even stuff you'd find under PlayerLoop that's just an artifact of running in the Editor, which you won't find if you profile a build of the game.
     
    Bagazi, MartinTilo and Kurt-Dekker like this.