Class SceneOptimization
Hierarchy (View Summary)
Index
Constructors
constructor
-
Creates the SceneOptimization object
Parameters
- priority: number = 0
defines the priority of this optimization (0 by default which means first in the list)
Returns SceneOptimization
- priority: number = 0
Properties
priority
priority: number = 0
[0] Defines the priority of this optimization (0 by default which means first in the list)
Methods
apply
-
This function will be called by the SceneOptimizer when its priority is reached in order to apply the change required by the current optimization
Parameters
- scene: Scene
defines the current scene where to apply this optimization
- optimizer: SceneOptimizer
defines the current optimizer
Returns boolean
true if everything that can be done was applied
- scene: Scene
get Description
-
Gets a string describing the action executed by the current optimization
Returns string
description string
Defines the root class used to create scene optimization to use with SceneOptimizer
See
https://doc.babylonjs.com/features/featuresDeepDive/scene/sceneOptimizer