Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--disable-gpu

What does --disable-gpu do?

Disables GPU hardware acceleration. If software renderer is not in place, then the GPU process won't launch.

Usage

CLILaunch Chrome with --disable-gpu using CLI

chrome --disable-gpu

PuppeteerLaunch Chrome with --disable-gpu using Puppeteer

const browser = await puppeteer.launch({
  args: ['--disable-gpu']
});

PlaywrightLaunch Chrome with --disable-gpu using Playwright

const browser = await chromium.launch({
  args: ['--disable-gpu']
});

SeleniumLaunch Chrome with --disable-gpu using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-gpu')

driver = webdriver.Chrome(options=options)