Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  6. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Legacy GUI vs "Canvas" GUI performance

Discussion in 'Unity UI & TextMesh Pro' started by chubbspet, Dec 8, 2018.

  1. chubbspet

    chubbspet

    Joined:
    Feb 18, 2010
    Posts:
    1,206
    Hey guys

    Due to some old, long-term projects that was done in legacy gui (and working really well) I stuck to legacy GUI until now that I have 2 new contracts. The gui stuff I do is mostly pretty basic. I can't seem to find any google links comparing the performance of the 2. If someone could please help me with a link or explain (from a performance point of view) if/why the new system is better that the legacy one. It would be appreciated.

    Thanks for any input.
     
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    531
    As you can read here the OnGUI Method is potentially called several times per frame. How often is depending on the types of events which happen at the given frame. Here is a list of potential events.
    If you have a complex UI this can drastically decrease your performance. For simple UIs it can be okay.

    I wonder how the performance difference is if you just display three buttons... maybe you can figure it out with the profiler.
     
  3. Digi001

    Digi001

    Joined:
    May 29, 2015
    Posts:
    1
    Thanks, I will run some tests and post them here for what it's worth. Maybe it can help someone, although my knowledge is very limited regarding UI.