Search Unity

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:
    606
    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:
    8,289
    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:
    606
    Got it. Thanks!

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