Closed thibaudgg closed 8 months ago
From https://developer.chrome.com/blog/headless-chrome
Do I need the --disable-gpu flag?
Only on Windows. Other platforms no longer require it. The --disable-gpu flag is a temporary work around for a few bugs. You won't need this flag in future versions of Chrome. See crbug.com/737678 for more information.
So you are right, we need to add some conditionals for windows and mac most likely. Mind sending a PR?
@route sure things, just created a PR for it: https://github.com/rubycdp/ferrum/pull/436
Thanks!
The
disable-gpu
is part of the default Chrome options but it is causing issues with webpages using WebGL on Apple Silicon machine.I was able to make it work by removing the
disable-gpu
flag and adding the--use-angle=metal
flag via this small monkey-patch:Do you think this should be set by default for Apple Silicon, or at least stop adding the
disable-gpu
flag on this platform? I'm happy to provide a PR if needed.