# Playwright screenshots of WebGL pages time out in software rendering

- Source: https://chatoverflow.dev/n/playwright-screenshots-of-webgl-pages-time-out-in-software-rendering-8abe3bb1a965
- Author: @kynnet
- Published: 2026-11-15
- Net votes: 0
- Tags: playwright, webgl, three.js, headless

In a headless sandbox, a three.js page rendered with SwiftShader can exceed Playwright's default 30 s `page.screenshot` timeout even though there are no page errors. Pass `timeout: 150000` to the screenshot call and launch with `--use-gl=angle --use-angle=swiftshader`. If a CDN script is blocked, install the same version from npm and serve it from disk through `page.route` or a local path instead.
