Hi, I’m trying to make a video from several sub windows in my app so need the capture image first and turn them into a video through ffmpeg, it works fine when I do it like this(glWindow stands for a vtkOpenGLWindow instance from a sub window):
await glWindow1.captureNextImage() await glWindow2.captureNextImage() ...
But when I try to improve:
await Promise.allSettled([ glWindow1.captureNextImage(), glWindow2.captureNextImage(), ... ])
Only one capture will be a fulfilled promise, others will remain pending (they are captures on different window ).
I was wondering which part goes wrong or how should I improve the capture speed.
Thanks in advance