thorvg / thorvg.web

ThorVG for Web System
https://www.thorvg.org
MIT License
3 stars 1 forks source link

Optimize the performance with the multi-tasking #15

Open hermet opened 1 month ago

hermet commented 1 month ago

Try threading optimization with the nested web workers if the perf. can be increased.

launch the next commands on 2 web-worker.

picture->load() / canvas->push(picture) / picture->update(picture)
canvas->draw()

launch the next commands on one web-worker.

picture->load()
canvas->push(picture) or picture->update(picture)
canvas->draw()