math3d.org has a nice system for slowing down the render loop on static scenes when the user's not interacting with them.
While porting over @znah's notebook example in the Mathbox repo, I noticed this snippet for pausing a Mathbox instance's render loop when it's offscreen: https://github.com/unconed/mathbox/pull/17/files#diff-4f72fd87fb2ab3fd3821222aabc2f8c7cfd1529301aa4d741efd67e5412846e6R160-R171
@ChristopherChudzicki , do you think that these strategies should be implemented in mathbox-react? Maybe implemented in mathbox but exposed through the mathbox-react component API somehow, I mean.
It feels like a nice idea, to be able to provide a render strategy like this to the top level component.
Or, if not, is there a clean way to hook these strategies in, maybe by storing a mathbox ref separately and using the same callback approach from the notebook?
It feels gross to do that, but maybe it's fine.
math3d.org has a nice system for slowing down the render loop on static scenes when the user's not interacting with them.
While porting over @znah's notebook example in the Mathbox repo, I noticed this snippet for pausing a Mathbox instance's render loop when it's offscreen: https://github.com/unconed/mathbox/pull/17/files#diff-4f72fd87fb2ab3fd3821222aabc2f8c7cfd1529301aa4d741efd67e5412846e6R160-R171
@ChristopherChudzicki , do you think that these strategies should be implemented in mathbox-react? Maybe implemented in mathbox but exposed through the mathbox-react component API somehow, I mean.
It feels like a nice idea, to be able to provide a render strategy like this to the top level component.
Or, if not, is there a clean way to hook these strategies in, maybe by storing a mathbox ref separately and using the same callback approach from the notebook?
It feels gross to do that, but maybe it's fine.