I'm working on a complex WPF application, and sometimes the simple Window.ShowDialog
calls are slow. It takes around 5~10s to show the window. From profiling I see all native stuff:
It seems PushFrameImpl
takes most of the time. What may possibly cause that? How can I improve it?