spite / ccapture.js

A library to capture canvas-based animations at a fixed framerate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to do capturing in a Web Worker thread?

cuinjune opened this issue · comments

I'm currently using setTimeout(functionToCapture, 4) to capture frames as fast as possible while not blocking the main thread.

I wonder if it's technically possible to capture frames in a Web Worker thread instead to make it even faster.
The canvas doesn't need to be drawn while capturing the frames in my case.

were you able to run it?