Currently, I am facing a challenge with loading .stl files into my viewer. My goal is to utilize the orbit controls provided by three.js to enable users to navigate around the file and view it from various perspectives. While the models do load successfully, the performance of orbiting around the object is sluggish, even on high-performance systems. Additionally, the speed decreases the longer the viewer remains active.
What steps can I take to enhance the overall performance of the viewer?
Unfortunately, due to the setup of my site, I am unable to create a jsFiddle or use Codepen for this particular issue. However, you can access the live version of my project at ethanhammond.github.io, and review the code on github.com/ethanhammond/ethanhammond.github.io.
This is my first experience working with three.js, so there may be some errors in my code as a result.