-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental threading feature #329
Conversation
- the example load the nft marker but raise errors while tracking
I have commited a simple example with the new threaded version of the lib, for now only the wasm version, it load the nft marker and it track but it not show up anything. I need to check what is wrong. In the console i receive also this message: Post edit in reference of the last sentence: when compiling with emscripten this message is printed: |
sometimes instead i get an error like this:
|
- the code in this method is already initialized in the threaded func
With the latest commit it seems that some errors are gone. |
- required functions for a correct render of models
I'm working now on the >Typescript code, it can load the nft markers and instantiate the threaded workers but after i got tis error several times:
Probabaly a webpack issue. webapck worker-loader seems to not doing nothing, or maybe a missed something. |
The dist lib |
Emscripten Pthread feature
I'm experimenting a threaded version of the lib, i want to test if we have an improvement in performances within. I will provide two version: a simle simple wasm version and another with ES6 to be used in the Typescript version.
Note for testing
Because the code use pthreads it's necessary to enable COOP and COEP as mentioned in the Emscripten article. You can try in localhost running the provided python script
python-server.py