Search Unity

performance vs uGUI when events are turned off?

Discussion in 'Immediate Mode GUI (IMGUI)' started by laurentlavigne, Feb 7, 2021.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,335
    According to profiler the events section of OnGUI is eating up 3ms. I was wondering if this includes drawing or just the event polling is super slow.
    And in comparison to uGUI, is OnGUI really that much slower? I know devs have optimized it a lot in the past 5 years so perhaps onGUI isn't that slow.