frenchtoast747 / webgl-obj-loader

A simple OBJ model loader to help facilitate the learning of WebGL.
http://frenchtoast747.github.io/webgl-obj-loader/
MIT License
283 stars 59 forks source link

web worker #12

Open nickdesaulniers opened 10 years ago

nickdesaulniers commented 10 years ago

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 commented 9 years ago

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).