Add async vtk.wasm examples with web worker and vtkAlgorithm abort
- Adds two new examples demonstrating usage of web workers in vtk.wasm. They both use vtkAlgorithm abort functionality to enable more responsive VTK web applications.
- The basic example
AsyncClipper
uses amain()
function and the-sPROXY_TO_PTHREAD
link flag which does all the heavy lifting of runningmain()
itself on a new thread and transferring the canvas for offscreen rendering. - The second example
WrappedAsyncClipper
doesn't have amain()
and is entirely driven from javascript through custom bindings. It shows in detail how to transfer the canvas offscreen to the newly created pthread.
Edited by Jaswant Panchumarti (Kitware)
Merge request reports
Activity
assigned to @jaswant.panchumarti
Errors:
- commit 41a68cf4 is not allowed; missing newline at the end of file in
Examples/Emscripten/Cxx/AsyncClipper/index.html
. - commit 29832a0a is not allowed because the following files are not formatted according to the 'clang-format' check:
Examples/Emscripten/Cxx/WrappedAsyncClipper/WrappedAsyncClipper.cxx
,Examples/Emscripten/Cxx/WrappedAsyncClipper/WrappedAsyncClipper.h
. Post a comment ending in the lineDo: reformat
to rewrite the MR source branch automatically. - commit 29832a0a is not allowed; missing newline at the end of file in
Examples/Emscripten/Cxx/WrappedAsyncClipper/WrappedAsyncClipper.h
. - commit 29832a0a is not allowed; missing newline at the end of file in
Examples/Emscripten/Cxx/WrappedAsyncClipper/index.html
.
Warnings:
- please consider adding a changelog entry in a file ending with
.md
inDocumentation/release/dev
.
The warnings do not need to be fixed, but it is recommended to do so.
Please rewrite commits to fix the errors listed above (adding fixup commits will not resolve the errors) and force-push the branch again to update the merge request.
- commit 41a68cf4 is not allowed; missing newline at the end of file in
Errors:
- commit 45dd0c47 is not allowed because the following files are not formatted according to the 'clang-format' check:
Examples/Emscripten/Cxx/WrappedAsyncClipper/WrappedAsyncClipper.cxx
,Examples/Emscripten/Cxx/WrappedAsyncClipper/WrappedAsyncClipper.h
. Post a comment ending in the lineDo: reformat
to rewrite the MR source branch automatically.
Warnings:
- please consider adding a changelog entry in a file ending with
.md
inDocumentation/release/dev
.
The warnings do not need to be fixed, but it is recommended to do so.
Please rewrite commits to fix the errors listed above (adding fixup commits will not resolve the errors) and force-push the branch again to update the merge request.
- commit 45dd0c47 is not allowed because the following files are not formatted according to the 'clang-format' check:
added 1 commit
- 157a2fda - Add wrapped wasm example using web worker and vtkAlgorithm abort
added 12 commits
-
157a2fda...ce05c699 - 10 commits from branch
vtk:master
- 5d0f9811 - Add simple wasm example using web worker and vtkAlgorithm abort
- 0cd56c54 - Add wrapped wasm example using web worker and vtkAlgorithm abort
-
157a2fda...ce05c699 - 10 commits from branch
requested review from @cory.quammen
mentioned in commit 1efdd916
mentioned in commit leon.victor/paraview@bb40735c
Please register or sign in to reply