Unity Issue Tracker - Poor performance in the Editor when processing input events in "OnGUI" function
Closed
UUM-111911
Poor performance in the Editor when processing input events in "OnGUI" function
Unity: Native Editor Input Routing
Linux
As Designed
6.3.X
6.2.X
6.1.X
6.0.X
OnGUI is immediate mode. If a machine is bottlenecked by GPU or CPU performance, issues like this are more likely to occur. The Unity editor does not consolidate mouse wheel events.
Reproduction steps:
1. Open the attached “IN-108278” project
2. Open the “MyEditorWindow” window (Tests > OnGUI test)
3. Hovering over the window, use the scroll on the mouse
4. Observe the random color texture or the Profiler window
Expected result: Scrolling does not affect the performance. Initiates only 1 scroll input event
Actual result: Scrolling results in poor performance. Initiates more than 1 scroll input event per editor update