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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug GameView.OnGUI.repaint -- profiler spikes on empty scene

Discussion in 'Editor & General Support' started by KarlKarl2000, Jun 6, 2022.

  1. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    600
    To the Unity team.

    Unity 2021.1.28f1

    I was getting some heavy lag while using the editor and playing a level.

    I saw these lag spikes even in an empty scene. Any idea what GameView.OnGUI.repaint does? And how we can disable it?

    Thanks

    upload_2022-6-6_16-16-13.png
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,905
    It's drawing the game view editor window. You can't disable it unless you close the Game view. You should profile your game in the player to get a better picture without the editor noise.
     
  3. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    600
    Got it. Thanks!

    So we'll have to deal with that overhead while developing the game I guess. :oops:
     
    karl_jones likes this.