Chrome Flags Reference

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

--num-raster-threads

What does --num-raster-threads do?

Controls the number of threads to use for raster tasks.

Usage

CLILaunch Chrome with --num-raster-threads using CLI

chrome --num-raster-threads

PuppeteerLaunch Chrome with --num-raster-threads using Puppeteer

const browser = await puppeteer.launch({
  args: ['--num-raster-threads']
});

PlaywrightLaunch Chrome with --num-raster-threads using Playwright

const browser = await chromium.launch({
  args: ['--num-raster-threads']
});

SeleniumLaunch Chrome with --num-raster-threads using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--num-raster-threads')

driver = webdriver.Chrome(options=options)