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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Worst performance yet of OnGUI in 2018.2.9 build + script debugging

Discussion in 'Immediate Mode GUI (IMGUI)' started by mgto, Nov 14, 2018.

  1. mgto

    mgto

    Joined:
    May 30, 2013
    Posts:
    22
    Hi everyone,

    I noticed that my development builds with enabled script debugging are getting an extensive performance hit. A lot more then I'm used to. The Profiler tells me it's primarily bc of OnGUI related unity code (BeginGUI() EndGUI())

    I build with .Net 4.x, IL2CPP, C++ Release

    I use OnGUI a lot for my debug GUI. An older build I did with 2018.2.6f1 does not show this behavior.

    My release builds (stripping out all OnGUI methods) are running at about 60fps , my debug builds formerly did run at about 30fps but now around 3fps.
    I didn't change anything related to the GUI nor does anything else show a significant performance drop in the Profiler.

    Is this known / does a work around exist?

    ps. currently I'm building with 2018.2.15 with the same result.

    Edit: to make it clear: as soon as I disable script debugging in the build settings the speeds are up again.
     
    Last edited: Nov 14, 2018
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,717
    Could you file a bug report, please?