Skip to content
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

web worker #12

Open
nickdesaulniers opened this issue Sep 28, 2014 · 1 comment
Open

web worker #12

nickdesaulniers opened this issue Sep 28, 2014 · 1 comment

Comments

@nickdesaulniers
Copy link
Contributor

Though this would change the interface, parsing should really be done in a separate thread so as not to block the main thread of execution. Meshes like the Stanford Dragon (~9MB) will trigger a slow script warning.

@mattdesl
Copy link

IMO web workers might be better suited as another module, perhaps using webworkify or something similar. An OBJ loader is just string parsing, and shouldn't have any ties to the browser.

This way the parser is useful for Node and other environments that use JS (like CocoonJS, AfterEffects ExtendScript).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants