Discussions

Ask a Question
Back to all

Performance Stuttering with Heygen Streaming Video

Hello,

We are using a canvas-based chroma key implementation on top of a HeyGen streaming avatar. However, we are experiencing occasional stuttering / frame drops in the video.

The same chroma key approach appears smooth on HeyGen’s Tools demo page(https://docs.heygen.com/page/tools), but stuttering occurs in our application. We believe this may be related to:

CPU-bound pixel-level chroma key processing on canvas

Frequent getImageData / putImageData calls per frame

Additional main-thread load caused by Angular + Zone.js

Running dynamic streaming video and canvas rendering simultaneously

If needed, I can share sample code of our chroma key and rendering logic.
We would appreciate any recommendations for performance optimization.

Thank you.