- Home /
Huge Performance difference between docked and undocked EditorWindow
Hi,
I've got a custom EditorWindow that is not a Utility-Window. When this window is docked, my FPS within the editor is around 1870 (0.5ms/frame). When I undock this window, FPS drops down to 310 (3.2ms/frame), no matter what I draw in this window (even when skipping OnGUI)
True, doing a lot of stuff inside the EditorWindow will affect performance, but this should be (more or less) the same whether the window is docked or not, right? Especially if I skip OnGUI and disable any refresh, there shouldn't be any overhead.
Anyone got an idea what might be the reason for this difference?
Regards Jake
It's potentially because it has to calculate the size of the window for every frame. If it's docket it already knows the size.
Good thing there won't be any end users playing in the editor
Someone on the forum also speculated that this might be one of the reasons why the webplayer is so much slower then standalone.
But in the webplayer it should know the size, wouldn't it? It is after all set in the css (or similar).
Your answer
Follow this Question
Related Questions
Event.current not fired after BeginWindows() on an EditorWindow 0 Answers
How to force Unity to Repaint an EditorWindow? 1 Answer
OnGui elements as objects? 2 Answers
Unity doesn't support generic editor windows? (GetWindow ) 3 Answers
How to draw button in editor window rotated by 90 degrees? 0 Answers