cefsharp / cefsharp/CefSharp

Winforms - Tab switch should reduce CPU utilisation

Open
#2,922 10 comments 0 reactions 1 assignee Claimed by @amaitland View on GitHub
up-for-grabs winforms
Dominant language
C#
Stars
10.3k
Forks
2.9k
Avg merge
5d 22h
Merged PRs (30d)
4

Description

**- What version of the product are you using?**

75.1.142

**-Are you using WinForms, WPF or OffScreen?**

WinForms

**- On what operating system?**

Win7, Win10

**- What steps will reproduce the problem?**
Run cefSharp.WinForms.Example and CefSharp.Wpf.Example, I'm testing the www.ezcarry.com site, which has animated effects on its home page, and cesharp.wpf occupies a very high cpu, nearly cefsharp Double the .winform; in the wpf example, I open the site and switch to the cpu-low tab, the cpu will go down; but the cpu in winform will not go down; and the same is true of the winform, but the wpf version will go down;

I tested it with cefclient.exe【cef_binary_76.1.13+gf19c584+chromium-76.0.3809.132_windows32_client】, and when I opened the above website, the cpu was around 20%, but when I minimized it, the cpu dropped to about 1%

cefsharp. Winform version program minimizes or switches to cpu-low tab, high CPU tab CPU usage has been maintained;

WPF version, if I switch from a high cpu tab to a cpu-low tab page or minimize the browser program, the cpu will immediately drop to nearly 0;

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.