uses high CPU around 40% on playing video in a pop up dialog

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.

uses high CPU around 40% on playing video in a pop up dialog

Postby avkumars » Tue Jan 14, 2020 8:14 am

We have a cef based application. Here when we play a video of .ogv format of size 3.24 MB on a pop up dialog in loop. On the Surface pro machine on Windows 10 the CPU utilization reaches to 40% .Even on waiting for 5 minutes the PU utilization is still 40%.However on closing the dialog the CPU utilization drops to 4% .Please le me know if there is existing bug for this .And if there is any workaround.
Last edited by avkumars on Tue Jan 14, 2020 1:05 pm, edited 1 time in total.
avkumars
Newbie
 
Posts: 2
Joined: Tue Jan 14, 2020 2:11 am

Re: uses high CPU around 40% on playing video in a pop up di

Postby magreenblatt » Tue Jan 14, 2020 9:53 am

What CEF version? Are you using windowed or off-screen rendering? What GPU-related command-line flags are you passing? Does the problem reproduce in the CEF sample applications or Google Chrome at the same version?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: uses high CPU around 40% on playing video in a pop up di

Postby ndesktop » Tue Jan 14, 2020 12:20 pm

Maybe the video loop is blocked by the modal loop?
Try with a modeless dialog and CreateDialogIndirect.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: uses high CPU around 40% on playing video in a pop up di

Postby HarmlessDave » Tue Jan 14, 2020 12:47 pm

Also, what is the CPU utilization in Google Chrome? If it's 40% there too then it's Chromium not CEF.
HarmlessDave
Expert
 
Posts: 370
Joined: Fri Jul 11, 2014 2:02 pm

Re: uses high CPU around 40% on playing video in a pop up di

Postby avkumars » Fri Jan 17, 2020 2:07 am

Hi All ,

Please find the details below
1. CEF Version : 73.1.12
2. Command Line Flag :
--disable-gpu-sandbox
--disable-gpu
--disable-3d-apis
--in-process-gpu
--disable-gpu-shader-disk-cache
--force-renderer-accessibility
--disable-pinch
--disable-webgl
--no-experiments
"disable-features", "TouchpadAndWheelScrollLatching,AsyncWheelEvents"


3. Played video file in Sample CEF App 73.1.12 with above command line arguments
- CPU usage is around 30%(when we just open the video as file).
- When video is played via HTML5 video tag in Sample CEF App 73.1.12 with command line arguments, CPU usage is around 20%

Command : cefclient.exe --disable-gpu-sandbox --disable-gpu --disable-3d-apis --in-process-gpu --disable-gpu-shader-disk-cache --force-renderer-accessibility --disable-pinch --disable-webgl --no-experiments

4. Try with a modeless dialog and CreateDialogIndirect. (asked by user in forum)
We are playing this HTML5 video tag

5. Are you using windowed or off-screen rendering
- We are using windowed rendering
avkumars
Newbie
 
Posts: 2
Joined: Tue Jan 14, 2020 2:11 am

Re: uses high CPU around 40% on playing video in a pop up di

Postby rishgarg » Tue Jan 21, 2020 1:31 am

@magreenblatt, do you need any more info regarding the issue?
Is there a bug/issue already logged in CEF for the same?
rishgarg
Techie
 
Posts: 16
Joined: Wed Feb 13, 2019 1:11 pm

Re: uses high CPU around 40% on playing video in a pop up di

Postby magreenblatt » Tue Jan 21, 2020 12:18 pm

You’re running with GPU disabled, which means that all rendering is handled by the CPU. I would expect high CPU usage in this case.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 112 guests