Search Unity

  1. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  2. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  3. Participate with students all over the world and build projects to teach people. Join now!
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Worst performance yet of OnGUI in 2018.2.9 build + script debugging

Discussion in 'Extensions & OnGUI' started by mgto, Nov 14, 2018.

  1. mgto


    May 30, 2013
    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