wavychat / video-editor

:movie_camera:. A fast cross-platform video editor with a multitude of functions (draw, image import, text, audio editing)
https://wavychat.gitbook.io/video-editor/
8 stars 0 forks source link

Use OffScreenCanvas and WebWorkers #19

Open johannbuscail opened 3 years ago

johannbuscail commented 3 years ago

Issue

Slowness

Solution

Instead of using just the main thread with a canvas that needs to render, It would be faster to use a WebWorker to create another thread and use an OffScreenCanvas to not render everything when it's not needed.

Related:

https://github.com/fabricjs/fabric.js/issues/3941 https://github.com/fabricjs/fabric.js/issues/5231

https://caniuse.com/?search=offscreencanvas https://stackoverflow.com/questions/50799546/use-fabricjs-and-offscreencanvas-to-work-with-workers-html5 https://medium.com/samsung-internet-dev/offscreencanvas-workers-and-performance-3023ca15d7c7 https://bugs.chromium.org/p/chromium/issues/detail?id=923007

nmitic commented 2 months ago

Any news about supporting this one?