How to improve CEF startup time

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

How to improve CEF startup time

Postby oriko » Tue Feb 16, 2021 9:19 am

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
oriko
Newbie
 
Posts: 1
Joined: Tue Feb 16, 2021 8:58 am

Re: How to improve CEF startup time

Postby amaitland » Tue Feb 16, 2021 2:29 pm

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.
Maintainer of the CefSharp project.
amaitland
Master
 
Posts: 969
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 1 guest