BlackMojito Posted March 8, 2018 Share Posted March 8, 2018 I just read about SceneOptimizer and I understood that it helped to reach a target FPS by deactivating/degrading something. But it seems that there is no way to easily revert the operations? I didn't see that we could register a call back to re-enable the stuff that had been disabled. Hope I am clear... Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 8, 2018 Share Posted March 8, 2018 There are certain degredation types in the scene optimizer that cannot be reverts (such as the merge-mesh, which disposes the meshes that were merged). Others, such as the HardwareScalingOptimization, can be altered. you can load the optimizations and change the parameters. Afterwards you will need to reset the scene optimizer so that it will re-run the optimizations with the new settings. This is, however, not exactly what you are trying to achieve, I guess The SceneOptmizer is more like a "one-way" optimizer, as you nicely put it. You can choose the optimizations you want to actually execute and those you don't. The ones you don't you can trigger manually. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 8, 2018 Share Posted March 8, 2018 There is also an improvement mode: http://doc.babylonjs.com/how_to/how_to_use_sceneoptimizer#improvement-mode Quote Link to comment Share on other sites More sharing options...
BlackMojito Posted March 9, 2018 Author Share Posted March 9, 2018 15 hours ago, Deltakosh said: There is also an improvement mode: http://doc.babylonjs.com/how_to/how_to_use_sceneoptimizer#improvement-mode So, it means that I can first write a "Degrader", then a "Improver" which reverts everything degraded in Degrader (of course in the reverse order) ? Quote Link to comment Share on other sites More sharing options...
Guest Posted March 9, 2018 Share Posted March 9, 2018 yes sir! 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.