If you encounter performance issues with the main menu (or another panel) coming up, this might be due to calculating the current mouse position. If this is bothering you, go to Settings / Miscellaneous / Position of Borderless Dialogs and set it to At Last Position or Always Centered to disable calculating the mouse position.