SceneOptimization

Defines the root class used to create scene optimization to use with SceneOptimizer

description

More details at http://doc.babylonjs.com/how_to/how_to_use_sceneoptimizer

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Find examples in Playground
  • Creates the SceneOptimization object

    Parameters

    • Optional priority: number

      defines the priority of this optimization (0 by default which means first in the list)

    Returns SceneOptimization

Properties

priority

Find examples in Playground
priority: number

Defines the priority of this optimization (0 by default which means first in the list)

Methods

apply

Find examples in Playground
  • 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

getDescription

Find examples in Playground
  • getDescription(): string
  • Gets a string describing the action executed by the current optimization

    Returns string

    description string

Generated using TypeDoc