KnisterPeter Posted February 11, 2015 Share Posted February 11, 2015 Hi there, I would like to create a renderLoop which updates on demand. By that I mean we have no animations requiring a decent FPS rate but would like to save battery and CPU cycles.By on demand I mean we would like to render a new frame when some model updates (underlying data model) or user interactions are noticed. In three.js this would be possible, since the renderLoop is triggered by user code with window.requestAnimationFrame. Is something similar possible with Babylon.JS?I've found the SceneOptimizer, but that is not meant to restrict the FPS but to degrade details to reach a defined FPS rate. Any hints are welcome. Best regardsMarkus Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 11, 2015 Share Posted February 11, 2015 Actually you can call scene.render() when you want There is no need to use engine.runRenderLoop() if you don't want to Quote Link to comment Share on other sites More sharing options...
KnisterPeter Posted February 11, 2015 Author Share Posted February 11, 2015 Cool. Thanks for your fast feedback Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.