I am managing a scene from external data but the users can control the camera and move some objects. When the render loop is running most of the renders result in no changes but still make the laptop fan go wild.
What is the best way to skip calling scene.render() if the scene has not received any updates from outside and the user is not trying to interact with it directly?
Invalidating scene based on incoming data is easy. And for detecting user interactions I was hoping to rely on camera.onViewMatrixChangedObservable, but that does not seem to be triggered while the scene is not being rendered.
I might over-prioritize my use-case and miss some harder to calculate inputs, but this seems like a low hanging fruit to improve the perceived performance through reduced CPU heat for a lot of content out there. What do you think?