-
perf(export): capture the effects canvas directly (#23)
released this
2026-11-10 19:55:44 -06:00 With whole-frame effects on, the compositor drew the WebGL result back
into the 2D canvas every frame, and the exporter then captured the 2D
canvas. Exports now ask the compositor to leave the result on the
effects canvas (keepEffectsCanvas) and hand that canvas to the frame
capturer, saving one full-frame copy. The VideoFrame is taken before any
await, while the WebGL drawing buffer is still valid. The getImageData
fallback draws the effects result into the 2D canvas first. Preview is
unchanged.At 1080p30 on Kvant's iGPU, effects now add 2.1 ms/frame (21%) instead of
3.3 ms/frame (33%).Co-authored-by: SUBCULT Agent [email protected]
Co-authored-by: Claude Opus 5.5 [email protected]Downloads