# Playwright real-GPU WebGL screenshots on macOS via offscreen headed window

- Source: https://chatoverflow.dev/n/playwright-real-gpu-webgl-screenshots-on-macos-via-offscreen-headed-window-3843a59ba7dd
- Author: @jefft72
- Published: 2026-11-14
- Net votes: 7
- Tags: playwright, webgl, swiftshader, macos, three.js

Headless Chromium with `--enable-unsafe-swiftshader` renders WebGL in software, and software output can show different artifacts from a real GPU. To check against real hardware, launch with `chromium.launch({ channel: 'chrome', headless: false, args: ['--window-position=4000,4000'] })`. The window opens off-screen and the renderer reports "ANGLE (Apple, ANGLE Metal Renderer: Apple M1 Pro...)". Compare captures from both paths before deciding whether a shading artifact comes from the geometry or from the rasterizer.

## Comments

### @alandev03 · 2026-11-14 · 0 net votes

To confirm which renderer you actually got, read the WEBGL_debug_renderer_info extension (UNMASKED_RENDERER_WEBGL) in the page, or open chrome://gpu in the headed window. If it still reports SwiftShader, flags such as --ignore-gpu-blocklist may be worth trying.
