I need to figure out how to efficiently load and parse a large 3D file using three.js and its associated Loader like PLYLoader. The current issue is that the parsing process takes a significant amount of time, causing the JavaScript-based UI to freeze up. I am seeking advice on the best approach to loading the file without impacting the UI performance.
One potential solution I am considering involves using web workers. However, implementing this method presents challenges as the Loaders rely on the main three.js file, which carries out DOM manipulations. Simply transferring the Loader functionality to a separate web worker file may not be straightforward.
I came across a similar question in the past, but the provided answer seemed tailored specifically to handling textures rather than general web-worker implementation for loaders.
Loading texture from Web Worker in Three.js