kovacsv / Online3DViewer

A solution to visualize and explore 3D models in your browser.
https://3dviewer.net
MIT License
2.46k stars 542 forks source link

Use OrbitControls and requestAnimationFrame #442

Open Flyingbeanss opened 8 months ago

Flyingbeanss commented 8 months ago

Hi, it's a amazing program and I'm very interested in it. I have some questions , I notice that OrbitControls and requestAnimationFrame is not used, and after I add some line2 (about 500), the FPS is very low. Is there any reason why OrbitControls and requestAnimationFrame are not used? And I want to know if the fps can be improved if I use them?

kovacsv commented 8 months ago

500 lines should not affect the performance, and I don't think OrbitControls or requestAnimationFrame has to do anything with it. Could you share what you have tried?