Optimizing initialization time

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Optimizing initialization time

Postby Yukigaru » Tue Jul 18, 2017 7:45 am

Hello,
I've got an issue with first time initialization. When I open an URL with the cef first time, it takes around 10-15secs on my PC. Next times it takes around 1sec (which is mostly - net response time I suppose). How can I reduce first time load duration? It may be crucial for users, they may think the game is broken because they can't see an image.
Thank you!

Info:
I use CreateBrowserSync,
Cef version is 3.2704.1434.gec3e9ed,
IDE VS 2010,
Windows 8,
Core i7, 16gb ram
Yukigaru
Newbie
 
Posts: 5
Joined: Tue Jul 18, 2017 7:40 am

Re: Optimizing initialization time

Postby magreenblatt » Tue Jul 18, 2017 9:53 am

If you have a fast disk and the delay is when you launch the application for the first time then it could be proxy auto-detection. Try passing the "--no-proxy-server" command-line flag. See https://bitbucket.org/chromiumembedded/ ... resolution for details.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Optimizing initialization time

Postby fddima » Tue Jul 18, 2017 1:23 pm

Another option is use --win-http-proxy-resolver - it might work better, but keep in mind Marshall's suggestion in first place.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 57 guests