I am currently using the three.js renderer.domelement.todataurl method to obtain the image of the current view, and it is working well. However, I'm facing a problem as my project requires capturing images at a high frequency, specifically every 0.1 second.
Under this high frequency, the browser almost freezes, and users are unable to interact due to the cpu-intensive nature of the todataurl() function.
I welcome any suggestions on how to address this issue.
My thoughts are: 1) Find an alternative method to capture images that does not rely on todataurl()? 2) Perhaps putting the renderer in a web worker could help?
Thank you for your input.