From bdf6e14d6f7b71c56a6c6e4ea61df40e64434f09 Mon Sep 17 00:00:00 2001 From: masnwilliams <43387599+masnwilliams@users.noreply.github.com> Date: Thu, 23 Apr 2026 22:03:27 +0000 Subject: [PATCH] docs: note computer controls screenshots are faster for webgl Add guidance that computer controls captureScreenshot is faster than CDP Page.captureScreenshot for animation-heavy and WebGL pages, and clarify GPU acceleration's scope: it speeds up page rendering, not CDP screenshot capture. --- browsers/computer-controls.mdx | 4 ++++ browsers/gpu-acceleration.mdx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/browsers/computer-controls.mdx b/browsers/computer-controls.mdx index 55f1ed4..fe5f916 100644 --- a/browsers/computer-controls.mdx +++ b/browsers/computer-controls.mdx @@ -158,6 +158,10 @@ kernel browsers computer move-mouse --x 500 --y 300 --smooth=false Capture a full-screen PNG or a specific region. + +For WebGL and other animation-heavy pages, `captureScreenshot` is noticeably faster than CDP's `Page.captureScreenshot`. If you're driving a computer-use loop off screenshots, prefer computer controls. [GPU acceleration](/browsers/gpu-acceleration) gives an additional small speedup for computer controls screenshots, but does not speed up CDP screenshots. + + ```typescript Typescript/Javascript import fs from 'fs'; diff --git a/browsers/gpu-acceleration.mdx b/browsers/gpu-acceleration.mdx index abf639d..638d2ab 100644 --- a/browsers/gpu-acceleration.mdx +++ b/browsers/gpu-acceleration.mdx @@ -44,6 +44,10 @@ GPU acceleration is useful for: - 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](/browsers/computer-controls#take-screenshots) see a small speedup with GPU enabled. + + ## Availability GPU acceleration is available on [Start-Up and Enterprise plans](https://kernel.sh/pricing). Due to limited capacity during the research preview, GPU-enabled browsers may not always be available.