High CPU load (MDIBrowser)

Post Reply
PetrCZ
Posts: 2
Joined: Sat May 04, 2024 2:26 pm

High CPU load (MDIBrowser)

Post by PetrCZ »

Hello,

I will use the sample program MDIBrowser (CEF4 124.3.1 which includes Chromium 124.0.6367.60).
When I open 6-8 web pages, the processor load is around 85-90%.

These are pages from LIVE basketball matches https://www.tipsport.cz/live/basketbal-7

My laptop:

Windows 11
Ram 8GB
CPU: Intel(R) Core(TM) i3-8145U CPU @ 2.10GHz

In older versions of CEF4 half a year ago, it handled 15 websites with the same CPU load.

Where can the problem be, or can CEF4 be set somehow?

Thank you.
User avatar
salvadordf
Posts: 4087
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: High CPU load (MDIBrowser)

Post by salvadordf »

Hi,

This issue could be caused by several factors :
  • Web page issue.
  • Chromium issue.
  • CEF issue.
  • Decoding UHD video in old hardware.
  • Overheated CPU/GPU.
Try a similar version of Chromium with those pages in the same laptop :
https://chromium.woolyss.com/
PetrCZ
Posts: 2
Joined: Sat May 04, 2024 2:26 pm

Re: High CPU load (MDIBrowser)

Post by PetrCZ »

Thank you for answer.

I load the website https://chromium.woolyss.com/ in MDIBrowser with no problem over 200 and the CPU load is around 5%.

The problem is dynamic websites, for example https://www.tipsport.cz/live/basketbal-7, where selecting a live basketball match (without video) will increase the processor load to 80%.
As I wrote before, about half a year ago on the same pages and with the same laptop, Cef4 managed even 15 running pages, and today hardly only 8.

Are there any ways to solve it? Or at least stop the website and then reload it, but without reloading, something like putting the card to sleep.
User avatar
salvadordf
Posts: 4087
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: High CPU load (MDIBrowser)

Post by salvadordf »

I just downloaded Chromium 124.0.6367.119 from https://chromium.woolyss.com/ and the Windows task manager shows a similar CPU usage than the MDIBrowser demo when both of them load https://www.tipsport.cz/live/basketbal-7

CEF doesn't have any method to suspend and resume browsers. That's only available in WebView4Delphi at the moment.

CEF only allows you to lower the CPU usage in OSR mode when the browser is hidden. If you prefer using CEF browsers in normal mode then try setting the browser visibility to False for the browsers that don't have the focus.

Also try setting GlobalCEFApp.EnableGPU to True before the GlobalCEFApp.StarMainProcess call in the DPR file.

If the current CEF and Chromium version has worse performance in dynamic web pages I would suggest using an older CEF version.
Post Reply