Creates a new SceneOptimizer
defines the scene to work on
defines the options to use with the SceneOptimizer
defines if priorities must be generated and not read from SceneOptimization property (true by default)
defines if the scene optimizer must run the maximum optimization while staying over a target frame instead of trying to reach the target framerate (false by default)
Gets the current frame rate checked by the SceneOptimizer
Gets the current priority level (0 at start)
Gets a boolean indicating if the optimizer is in improvement mode
Defines an observable called when the optimizer is not able to reach the target frame rate
Defines an observable called when the optimizer enables an optimization
Defines an observable called when the optimizer reaches the target frame rate
Gets the list of active optimizations
Gets or sets the current target frame rate (60 by default)
Gets or sets the current interval between two checks (every 2000ms by default)
Release all resources
Reset the optimizer to initial step (current priority level = 0)
Start the optimizer. By default it will try to reach a specific framerate but if the optimizer is set with improvementMode === true then it will run all optimiatiation while frame rate is above the target frame rate
Stops the current optimizer
Helper function to create a SceneOptimizer with one single line of code
defines the scene to work on
defines the options to use with the SceneOptimizer
defines a callback to call on success
defines a callback to call on failure
the new SceneOptimizer object
Generated using TypeDoc
Class used to run optimizations in order to reach a target frame rate
More details at http://doc.babylonjs.com/how_to/how_to_use_sceneoptimizer