Question by
Han-Wen · Feb 23 at 11:16 AM ·
performanceonguieditorgui
UIElementUltility.dodispatch onGUi spend lots of time
Hi,
So I have a custom editor window, which can make user decide which layout they want to use , grid layout or list layout, user slide the slider to decide the layout ( like the window that come out by click the material's texture filed ) , but i find out that sometime it spend so much time on "UIElementUltility.dodispatch. onGUI" just when i slide to list layout ( profiler show it cost 99.9% of time ),
I want to know what is it doing , and how can i fix it .
Thank you.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613053400im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Drawing onGUI Stuff over each other? 0 Answers
Unity performance questions 1 Answer
gfx.WaitForPresent causing performance drops? 1 Answer
5.4 GB of RAM used by editor. 1 Answer
can/should terrain children be merged to reduce object count? 0 Answers