How do I prevent the GPU process from being launched?

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.

How do I prevent the GPU process from being launched?

Postby rroy » Wed Jul 16, 2014 6:50 am

I have tried to disable accelerated compositing and webgl both programmatically and using command line switches but the browser process is still launching a process with type=gpu-process. Here is the complete browser setting:

CefBrowserSettings browserSettings;
browserSettings.accelerated_compositing = STATE_DISABLED;
browserSettings.webgl = STATE_DISABLED;

// the other settings used are:
browserSettings.plugins = STATE_DISABLED;
browserSettings.java = STATE_DISABLED;
browserSettings.javascript_close_windows = STATE_DISABLED;
browserSettings.javascript_access_clipboard = STATE_DISABLED;
browserSettings.javascript_dom_paste = STATE_DISABLED;
browserSettings.local_storage = STATE_DISABLED;
browserSettings.databases = STATE_DISABLED;
browserSettings.universal_access_from_file_urls = STATE_DISABLED;
browserSettings.web_security = STATE_ENABLED;

I am also providing the following command line switches when launching the CEF process: "--disable-accelerated-compositing", "--disable-webgl".
rroy
Techie
 
Posts: 11
Joined: Wed Nov 06, 2013 2:43 am

Re: How do I prevent the GPU process from being launched?

Postby Czarek » Wed Jul 16, 2014 7:19 am

Use the --disable-gpu flag.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: How do I prevent the GPU process from being launched?

Postby rroy » Wed Jul 16, 2014 7:40 am

Czarek wrote:Use the --disable-gpu flag.


Tried that as well without success.
rroy
Techie
 
Posts: 11
Joined: Wed Nov 06, 2013 2:43 am

Re: How do I prevent the GPU process from being launched?

Postby Czarek » Wed Jul 16, 2014 7:52 am

You should not include the "--" prefix when setting the flag in the OnBeforeCommandLineProcessing callback. Read the documentation in the header files.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: How do I prevent the GPU process from being launched?

Postby rroy » Thu Jul 17, 2014 12:26 am

I did not use the callback. I passed the arguments as command line arguments when launching the process. Is that wrong? In any case, only setting the CefBrowserSettings should also work, right?
rroy
Techie
 
Posts: 11
Joined: Wed Nov 06, 2013 2:43 am

Re: How do I prevent the GPU process from being launched?

Postby magreenblatt » Fri Jul 18, 2014 10:32 am

What CEF3 version are you using? Newer CEF3 versions use "--disable-gpu" and "--disable-gpu-compositing" command-line flags.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How do I prevent the GPU process from being launched?

Postby rroy » Mon Jul 21, 2014 4:23 am

Hi Marshall,
I am using 1916.
rroy
Techie
 
Posts: 11
Joined: Wed Nov 06, 2013 2:43 am

Re: How do I prevent the GPU process from being launched?

Postby rroy » Wed Jul 23, 2014 5:36 am

I have tried launching the browser process with "--disable-accelerated-compositing", "--disable-webgl", "--disable-gpu" and "--disable-gpu-compositing" without success. I have also tried loading the simplest content possible (http://www.example.com) just to exclude the possibility that the HTML content is triggering the GPU process. But the gpu-process always gets launched. Is this a bug?
rroy
Techie
 
Posts: 11
Joined: Wed Nov 06, 2013 2:43 am

Re: How do I prevent the GPU process from being launched?

Postby magreenblatt » Tue Jul 29, 2014 9:58 am

rroy wrote:Is this a bug?

It's complicated. Newer Chromium versions require a GPU process for compositing in both the browser and renderer process (even when using software compositing) so not having a GPU process may no longer be a tested/supported code path. See also https://groups.google.com/a/chromium.or ... By_So7zokJ for more (potentially out-of-date) information.

Last thing to try is the "--in-process-gpu" flag.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How do I prevent the GPU process from being launched?

Postby Streamlet » Wed Oct 16, 2019 7:50 am

magreenblatt wrote:
rroy wrote:Is this a bug?

It's complicated. Newer Chromium versions require a GPU process for compositing in both the browser and renderer process (even when using software compositing) so not having a GPU process may no longer be a tested/supported code path. See also https://groups.google.com/a/chromium.or ... By_So7zokJ for more (potentially out-of-date) information.

Last thing to try is the "--in-process-gpu" flag.



is there some switches like "--in-process-utility" ?
Streamlet
Mentor
 
Posts: 61
Joined: Tue Aug 27, 2019 6:47 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 109 guests