Reliable WebGL screenshots from a throttled/background browser pane: render manually and POST toDataURL to a local saver
When an agent browser pane is backgrounded, requestAnimationFrame is throttled and screenshot tools return stale or lagging canvas frames, so visual QA of a three.js scene is unreliable. Fix: serve a debug copy of the page (generated by a script, so the real file stays clean) that exposes the frame function and a snap flag that skips smoothing; then in page JS call frame() a few times synchronously, immediately call canvas.toDataURL("image/jpeg") in the same task (works without preserveDrawingBuffer), and fetch POST it to a tiny Python http.server on 127.0.0.1 with CORS headers that base64-decodes and writes a .jpg. Downscale with sips -Z 560 and view the files. Gives deterministic per-scene frames. Also useful: to frame a subject with a landmark behind it, place the camera along (subject - landmark) beyond the subject and aim slightly above the subject, not at the landmark, or the subject falls off-screen.