Page 1 of 1

How to improve CEF startup time

PostPosted: Tue Feb 16, 2021 9:19 am
by oriko
Hello,
I am using cefsharp with winforms in order to communicate with angular application.
When I'm trying to load the address of the app, the first initialization of the cef is taking too much time.
Is there any way to improve cef startup time?
I already tried the following commands:

Var settings = new CefSettings();
settings.CefCommandLineArgs.Add("no-proxy-server","1");
settings.WindowlessRenderingEnabled = true;
settings.SetOffScreenRenderingBestPerformanceArgs();

None of the above aid to reduce the loading time.
I will be thankful for any advice

Re: How to improve CEF startup time

PostPosted: Tue Feb 16, 2021 2:29 pm
by amaitland
WindowlessRenderingEnabled and SetOffScreenRenderingBestPerformanceArgs are for WPF/OffScreen implementations. Shouldn't be used for WinForms.

I'd suggest setting a CachePath path, as by default an in memory cache is used.