In my own application I do experience the same behavior as in CefGlue.Demo.WinForms:
When the application starts and the first CEF browser is being "opened", it takes about 2-3 seconds in multi process mode until the content is being shown/loaded. The next browsers that are opened in the same window/tab are way faster, only approx. less than a second.
In (the unsupported) single process mode even the first browser on application startup is really fast.
So I assume the this might be related to the fact the the render process application is also a .NET application.
I've fired up ANTS Performance Profiler on the CefGlue application and it seems to me that in fact the startup of the new process for the first time is the bottleneck:
Full resolution
Starting the second tab only seems to take half of the time:
Full resolution
I've also recorded a short screencast to (hopefully) demonstrate the effect.
My goal is to improve the first time startup, if possible. I would assume if I'm using a unmanaged application instead of a managed one, the startup performance would be way better.
So my questions are:
- Is my assumption right, that the render process startup causes this delay?
- Is there anything I can to improve?
(Side note: I would have loved to see a native CEF example to compare with but unfortunately it seems that none exists and the only one I found does use CEF 1, not 3 - am I wrong here?)