Defines an optimization based on user defined callback.
Creates the SceneOptimization object
Optional priority: number
defines the priority of this optimization (0 by default which means first in the list)
Callback called to apply the custom optimization.
Get DescriptionSearch playground for onGetDescription
Callback called to get custom description
prioritySearch playground for priority
Defines the priority of this optimization (0 by default which means first in the list)
This function will be called by the SceneOptimizer when its priority is reached in order to apply the change required by the current optimization
defines the current scene where to apply this optimization
defines the current optimizer
true if everything that can be done was applied
DescriptionSearch playground for getDescription
Gets a string describing the action executed by the current optimization