mateuszmigas / painting-droid

AI-powered cross-platform painting app inspired by the legendary MS Paint.
https://www.paintingdroid.com
GNU General Public License v3.0
93 stars 2 forks source link

Fill tool - WebGPU/WASM #94

Open mateuszmigas opened 3 weeks ago

mateuszmigas commented 3 weeks ago

Please describe the problem. The fill tool performs well on small images but might take some time on large images.

Describe the solution you'd like Consider:

  1. Using WASM, computation might be faster, but there will be transfer overhead.
  2. Using compute shaders in WebGPU, computation will be significantly faster, but data needs to be loaded into the GPU buffer. Also, WebGPU is not available in all browsers, so this should be feature-checked and have a fallback to the old method.

Describe alternatives you've considered N/A

Additional context N/A