Enable GPU acceleration
Set thegpu parameter to true when creating a browser:
Large GPU browsers
A standard GPU browser runs with 4 vCPUs, 6 GiB of memory, and a 2 GiB vGPU frame buffer. For graphics-heavy pages, request the large GPU browser by settingmemory to 12GiB. It doubles CPU, memory, and frame buffer: 8 vCPUs, 12 GiB of memory, and a 4 GiB frame buffer.
12GiB is the only memory value accepted together with gpu: true; omit memory to get the standard GPU browser. The memory field on the browser response reports the allocation you received.
Large GPU browsers come from their own capacity. When none is available, creation fails with HTTP 529 and the no_gpu_browsers_available code rather than falling back to a standard GPU browser, so retry later or create a standard GPU browser explicitly.
Use cases
GPU acceleration is useful for:- High performance live view streaming
- Rendering complex 3D graphics or WebGL content
- Video processing and playback
- Canvas-heavy applications
GPU acceleration speeds up page rendering, not screenshot capture. CDP’s
Page.captureScreenshot latency is unaffected by GPU. Computer controls screenshots see a small speedup with GPU enabled.