Closed TK-21st closed 2 years ago
This makes a lot of sense as a power saving optimization, but we have a significant amount of dynamic features planned so it makes sense to make sure that we don't lose any functionality or make things too complicated. Probably we want to exit out of the animate() loop when nothing is happening and restart it upon changes to the scene.
Closing as the raycaster requires trackballcontrol and dynamic rendering. Performance improvement in #37 should make this unnecessary.
Since the scene only contains objects that do not necessarily need to be rendered in an activate animation frame, could we benefit from using static rendering?
The specific changes are:
animate()
function. Specifically, remove call torequestAnimationFrame()
.TrackBallControl
toOrbitControl
.A preliminary test suggests that the performance difference is minimal, but worth a look.